mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-31 13:22:16 +02:00
These interfaces are implemented by the corresponding BSON classes and intended to be used by TypeWrapper implementations.
15 lines
324 B
PHP
15 lines
324 B
PHP
--TEST--
|
|
MongoDB\BSON\JavascriptInterface is implemented by MongoDB\BSON\Javascript
|
|
--FILE--
|
|
<?php
|
|
|
|
$javascript = new MongoDB\BSON\Javascript('function foo() { return bar; }', ['bar' => 1]);
|
|
var_dump($javascript instanceof MongoDB\BSON\JavascriptInterface);
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECT--
|
|
bool(true)
|
|
===DONE===
|