/** * Test if a the method `resolvePath` throws an * `DirectoryNotFoundException` with invalid paths. */ public function testIfResolvePathFailsOnInvalidPaths() { try { IncludePath::resolvePath(__DIR__ . '/notExistingPath'); $this->fail('FileNotFoundException was expected but never thrown'); } catch (FileNotFoundException $e) { } try { IncludePath::resolvePath('./notExistingPath'); $this->fail('FileNotFoundException was expected but never thrown'); } catch (FileNotFoundException $e) { } }
/** * Tear down the test case. */ public function tearDown() { IncludePath::removePath(Bootstrap::$testDir . '/com/mohiva/test/resources/common/lang/reflection'); }