示例#1
0
 public function testCreate()
 {
     $app = new \Exedra\Application(__DIR__ . '/Factory');
     $this->assertEquals(__DIR__ . '/Factory', $app->getRootDir());
     // $this->assertEquals('TestApp', $app->getNamespace());
     // $this->assertEquals('TestApp\\Foo\\Bar', $app->getNamespace('Foo\\Bar'));
     $this->assertEquals(realpath(__DIR__ . '/Factory/public'), realpath($app->getPublicDir()));
     $this->assertEquals(realpath(__DIR__ . '/Factory'), realpath($app->getRootDir()));
 }