/** * Tests that loadFile() finds a file in the include_path when $dirs is non-null * This was not working vis-a-vis ZF-1174 */ public function testLoaderFileIncludePathNonEmptyDirs() { $saveIncludePath = get_include_path(); set_include_path(implode(array($saveIncludePath, implode(array(__DIR__, '_files', '_testDir1'), DIRECTORY_SEPARATOR)), PATH_SEPARATOR)); $this->assertTrue(Loader::loadFile('Class4.php', implode(PATH_SEPARATOR, array('foo', 'bar')))); set_include_path($saveIncludePath); }