public function testLoadRouter() { $p = new Project(new Config(array('databases' => array('testdb' => Db::factory('Sqlite', array('database' => __DIR__ . '/../tmp/test.sqlite'))), 'defaultDb' => 'testdb')), array('Test' => new Config(array('some' => 'thing')))); $p->loadRouter(new Router(array('Pop\\Mvc\\Controller' => new Controller()))); $this->assertInstanceOf('Pop\\Mvc\\Router', $p->router()); }