### Eclipse Workspace Patch 1.0 #P ZF-STD-TRUNK Index: tests/Zend/View/Helper/HeadMetaTest.php =================================================================== --- tests/Zend/View/Helper/HeadMetaTest.php (revision 20365) +++ tests/Zend/View/Helper/HeadMetaTest.php (working copy) @@ -428,42 +428,42 @@ $test = $this->helper->toString(); - $expected = ' - - -'; + $expected = '' . PHP_EOL + . '' . PHP_EOL + . '' . PHP_EOL + . ''; $this->assertEquals($expected, $test); } - + /** * @issue ZF-7722 */ - public function testCharsetValidateFail() + public function testCharsetValidateFail() { $view = new Zend_View(); $view->doctype('HTML4_STRICT'); - + try { $view->headMeta()->setCharset('utf-8'); $this->fail('Should not be able to set charset for a HTML4 doctype'); } catch (Zend_View_Exception $e) {} } - + /** * @issue ZF-7722 */ public function testCharset() { $view = new Zend_View(); $view->doctype('HTML5'); - + $view->headMeta()->setCharset('utf-8'); $this->assertEquals( '', $view->headMeta()->toString()); - + $view->doctype('XHTML5'); - + $this->assertEquals( '', $view->headMeta()->toString()); Index: tests/Zend/View/Helper/HeadStyleTest.php =================================================================== --- tests/Zend/View/Helper/HeadStyleTest.php (revision 20365) +++ tests/Zend/View/Helper/HeadStyleTest.php (working copy) @@ -427,35 +427,24 @@ public function testContainerMaintainsCorrectOrderOfItems() { - $this->helper->offsetSetStyle(10, ' -a { - display: none; -}'); - $this->helper->offsetSetStyle(5, ' -h1 { - font-weight: bold -}'); + $style1 = 'a {display: none;}'; + $this->helper->offsetSetStyle(10, $style1); + $style2 = 'h1 {font-weight: bold}'; + $this->helper->offsetSetStyle(5, $style2); $test = $this->helper->toString(); + $expected = '' . PHP_EOL + . ''; - $expected = ' -'; - $this->assertEquals($expected, $test); } } Index: tests/Zend/View/Helper/Navigation/_files/mvc/views/menu.phtml =================================================================== --- tests/Zend/View/Helper/Navigation/_files/mvc/views/menu.phtml (revision 20365) +++ tests/Zend/View/Helper/Navigation/_files/mvc/views/menu.phtml (working copy) @@ -9,5 +9,5 @@ } $pages = implode(', ', $pages); ?> -Is a container: +Is a container: Pages: \ No newline at end of file Index: tests/Zend/View/Helper/HeadLinkTest.php =================================================================== --- tests/Zend/View/Helper/HeadLinkTest.php (revision 20365) +++ tests/Zend/View/Helper/HeadLinkTest.php (working copy) @@ -456,10 +456,10 @@ $test = $this->helper->toString(); - $expected = ' - - -'; + $expected = '' . PHP_EOL + . '' . PHP_EOL + . '' . PHP_EOL + . ''; $this->assertEquals($expected, $test); } Index: tests/Zend/View/Helper/Navigation/NavigationTest.php =================================================================== --- tests/Zend/View/Helper/Navigation/NavigationTest.php (revision 20365) +++ tests/Zend/View/Helper/Navigation/NavigationTest.php (working copy) @@ -370,7 +370,7 @@ . '
  • ' . $nl . ' Page 1' . $nl . '
  • ' . $nl - . '
  • ' . PHP_EOL + . '
  • ' . $nl . ' Page 2' . $nl . '
  • ' . $nl . ''; Index: tests/Zend/View/Helper/Navigation/LinksTest.php =================================================================== --- tests/Zend/View/Helper/Navigation/LinksTest.php (revision 20365) +++ tests/Zend/View/Helper/Navigation/LinksTest.php (working copy) @@ -637,11 +637,11 @@ $this->_helper->setRenderFlag($newFlag); $expectedOutput = '' . PHP_EOL - . ''; + . 'rel="' . $type . '" ' + . 'href="http://www.example.com/">' . constant($this->_helperName.'::EOL') + . ''; $actualOutput = $this->_helper->render(); $expected[$type] = $expectedOutput; @@ -664,7 +664,8 @@ $active->active = true; // test data - $expected = '' . PHP_EOL + $expected = '' + . constant($this->_helperName.'::EOL') . ''; $actual = $this->_helper->render(); @@ -681,7 +682,8 @@ $active->active = true; // build expected and actual result - $expected = ' ' . PHP_EOL + $expected = ' ' + . constant($this->_helperName.'::EOL') . ' '; $actual = $this->_helper->render();