public function testGetDatabaseAndConfig() { $config = new Config(array('dir' => __DIR__)); $path = __DIR__ . DIRECTORY_SEPARATOR . 'test.dat'; $db = new Database('test', $config); $this->assertEquals('test', $db->getName()); $this->assertInstanceOf('Flintstone\\Config', $db->getConfig()); $this->assertEquals($path, $db->getPath()); }