瀏覽代碼

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 14 年之前
父節點
當前提交
1cf69eb4d8
共有 1 個文件被更改,包括 2 次插入0 次删除
  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);