MongoMinKeyTest.php 460 B

12345678910111213141516171819
  1. <?php
  2. namespace Alcaeus\MongoDbAdapter\Tests\Mongo;
  3. use Alcaeus\MongoDbAdapter\Tests\TestCase;
  4. use Alcaeus\MongoDbAdapter\TypeInterface;
  5. /**
  6. * @author alcaeus <alcaeus@alcaeus.org>
  7. */
  8. class MongoMinKeyTest extends TestCase
  9. {
  10. public function testConvert()
  11. {
  12. $minKey = new \MongoMinKey();
  13. $this->skipTestUnless($minKey instanceof TypeInterface);
  14. $this->assertInstanceOf('MongoDB\BSON\MinKey', $minKey->toBSONType());
  15. }
  16. }