Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | public function testDriver() |
||
23 | { |
||
24 | $uri = uniqid('mongodb://'); |
||
25 | $uriOptions = range(1, 10); |
||
26 | $driverOptions = range(11, 21); |
||
27 | $dbName = uniqid('db_'); |
||
28 | |||
29 | $driver = new MongoDriver(); |
||
30 | $driver->setCredentials($uri, $uriOptions, $driverOptions); |
||
31 | |||
32 | $this->assertInstanceOf(Client::class, $driver->getClient()); |
||
33 | |||
34 | $driver->setDbname($dbName); |
||
35 | |||
36 | $this->assertInstanceOf(Database::class, $driver->getDatabase()); |
||
37 | $this->assertEquals($dbName, $driver->getDatabase()->getDatabaseName()); |
||
38 | } |
||
39 | } |
||
40 |