Browse Source

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 13 years ago
parent
commit
1cf69eb4d8
1 changed files with 2 additions and 0 deletions
  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);