Explorar o código

Fix ZF-9742: Need to use PHP_EOL but we get \n from a heredoc

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24730 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob %!s(int64=14) %!d(string=hai) anos
pai
achega
1cf69eb4d8
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tests/Zend/CodeGenerator/Php/Property/DefaultValueTest.php

+ 2 - 0
tests/Zend/CodeGenerator/Php/Property/DefaultValueTest.php

@@ -112,6 +112,8 @@ array(
         PHP_EOL
         );
 EOS;
+        // On Windows, we need PHP_EOL, but heredoc provides \n
+        $expectedSource = str_replace("\n", PHP_EOL, $expectedSource);
 
         $propDefaultValue = new Zend_CodeGenerator_Php_Property_DefaultValue();
         $propDefaultValue->setValue($targetValue);