Browse Source

Zend_View_Helper_FormSelect uses some hardcoded \n so this test failed of Windows

Martin Hujer 12 years ago
parent
commit
c9b04dbfcc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/Zend/Form/Element/SelectTest.php

+ 2 - 2
tests/Zend/Form/Element/SelectTest.php

@@ -262,9 +262,9 @@ class Zend_Form_Element_SelectTest extends PHPUnit_Framework_TestCase
         $actual   = $this->element->render($this->getView());
         $actual   = $this->element->render($this->getView());
         $expected = PHP_EOL
         $expected = PHP_EOL
                   . '<select name="foo[]" id="foo">'
                   . '<select name="foo[]" id="foo">'
-                  . PHP_EOL
+                  . "\n"
                   . '    <option value="bar">Bar</option>'
                   . '    <option value="bar">Bar</option>'
-                  . PHP_EOL
+                  . "\n"
                   . '</select>';
                   . '</select>';
 
 
         $this->assertSame($expected, $actual);
         $this->assertSame($expected, $actual);