コード例 #1
0
ファイル: IncludePathTest.php プロジェクト: mohiva/common
 /**
  * Check if a `DirectoryNotFoundException` will
  * be thrown when removing a non existing absolute path.
  */
 public function testIfFailsOnRemovingInvalidAbsoluteIncludePath()
 {
     $includePath = __DIR__ . '/notExistingPath';
     $beforeIncludePath = get_include_path();
     try {
         IncludePath::removePath($includePath);
         $this->fail('FileNotFoundException was expected but never thrown');
     } catch (FileNotFoundException $e) {
         $afterIncludePath = get_include_path();
         $this->assertEquals($afterIncludePath, $beforeIncludePath);
     }
 }
コード例 #2
0
 /**
  * Tear down the test case.
  */
 public function tearDown()
 {
     IncludePath::removePath(Bootstrap::$testDir . '/com/mohiva/test/resources/common/lang/reflection');
 }