ZF-7397: Zend_Application_Resource_FrontcontrollerTest::testShouldSetModuleDirectoryWhenOptionPresent and Zend_Application_Resource_ViewTest::testOptionsPassedToResourceAreUsedToSetViewState fail on Windows

Description

1) Zend_Application_Resource_FrontcontrollerTest::testShouldSetModuleDirectoryWhenOptionPresent simplest way to solve is implementing a function like the following in Zend_Application_Resource_FrontcontrollerTest:

    private function _normalizePathArray($dir)
    {
        foreach($dir as $key => &$dir1)
        {
            $dir2[$key] = str_replace("\\","/",$dir1);
        }       
        return $dir2;
    }

and changing line 188 into

        $this->assertEquals($this->_normalizePathArray($expected),$this->_normalizePathArray($dir));

2) Zend_Application_Resource_ViewTest::testOptionsPassedToResourceAreUsedToSetViewState fails simplest way to solve is implementing the same function in Zend_Application_Resource_ViewTest

    private function _normalizePathArray($dir)
    {
        foreach($dir as $key => &$dir1)
        {
            $dir2[$key] = str_replace("\\","/",$dir1);
        }       
        return $dir2;
    }

and changing line 116 into

        $this->assertContains(str_replace("\\","/",dirname(__FILE__)) . '/', $this->_normalizePathArray($paths), var_export($paths, 1));

I have not tested whether this patches work on Linux too, but for me (on Windows) they are working

Comments

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.