예제 #1
0
 /**
  * @runInSeparateProcess
  */
 public function testCase022()
 {
     $config = array("application" => array("directory" => TEST_APPLICATION_PATH, "dispatcher" => array("catchException" => 0, "throwException" => 0)));
     $app = new Yaf_Application($config);
     $this->assertEquals(rtrim(TEST_APPLICATION_PATH, DIRECTORY_SEPARATOR), $app->getAppDirectory());
     $app->setAppDirectory('/tmp');
     $this->assertEquals('/tmp', $app->getAppDirectory());
     try {
         $app->run();
     } catch (PHPUnit_Framework_Error $e) {
         $this->assertContains('Could not find controller script /tmp/controllers/Index.php', $e->getMessage());
     }
 }