Explorar o código

Fix ZF-12323: Windows newline issues in Zend_Navigation unit tests

git-svn-id: http://framework.zend.com/svn/framework/standard/branches/release-1.12@25019 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob %!s(int64=13) %!d(string=hai) anos
pai
achega
05a7f5a2a1
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      tests/Zend/View/Helper/Navigation/TestAbstract.php

+ 5 - 1
tests/Zend/View/Helper/Navigation/TestAbstract.php

@@ -146,7 +146,11 @@ abstract class Zend_View_Helper_Navigation_TestAbstract
      */
     protected function _getExpected($file)
     {
-        return file_get_contents($this->_files . '/expected/' . $file);
+        return str_replace(
+            "\n",
+            PHP_EOL,
+            file_get_contents($this->_files . '/expected/' . $file)
+        );        
     }
 
     /**