/** * 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); } }
/** * Tear down the test case. */ public function tearDown() { IncludePath::removePath(Bootstrap::$testDir . '/com/mohiva/test/resources/common/lang/reflection'); }