Example #1
0
 public function testPaths()
 {
     $driver = new ChainedDriver([]);
     $this->assertEquals([], $driver->getPaths());
     $driver->addPaths(['/tmp/classes', __DIR__ . '/Mappers']);
     $this->assertEquals(['/tmp/classes', __DIR__ . '/Mappers'], $driver->getPaths());
     $driver->addPaths([__DIR__ . '/test', '/tmp/otherclasses']);
     $this->assertEquals(['/tmp/classes', __DIR__ . '/Mappers', __DIR__ . '/test', '/tmp/otherclasses'], $driver->getPaths());
     $driver->addPaths(['/tmp/classes']);
     $this->assertEquals(['/tmp/classes', __DIR__ . '/Mappers', __DIR__ . '/test', '/tmp/otherclasses'], $driver->getPaths());
 }