2
0
Переглянути джерело

Fix Zend_View unit tests so that they work with PHPUnit 3.7.

Rob Allen 12 роки тому
батько
коміт
e295558931

+ 0 - 1
tests/Zend/View/Helper/HeadScriptTest.php

@@ -402,7 +402,6 @@ document.write(bar.strlen());');
             $this->helper->headScript()->captureEnd();
             $this->assertContains('Cannot nest', $e->getMessage());
         }
-        $this->helper->headScript()->captureEnd();
     }
 
     /**

+ 0 - 1
tests/Zend/View/Helper/HeadStyleTest.php

@@ -369,7 +369,6 @@ h1 {
                 $this->helper->headStyle()->captureEnd();
                 $this->assertContains('Cannot nest', $e->getMessage());
             }
-        $this->helper->headStyle()->captureEnd();
     }
 
     public function testMediaAttributeAsArray()

+ 1 - 1
tests/Zend/View/Helper/Navigation/SitemapTest.php

@@ -240,7 +240,7 @@ class Zend_View_Helper_Navigation_SitemapTest
         $this->_helper->setUseSitemapValidators(false);
 
         $expected = $this->_getExpected('sitemap/invalid.xml');
-        $this->assertEquals($expected, $this->_helper->render($nav));
+        $this->assertXmlStringEqualsXmlString($expected, $this->_helper->render($nav));
     }
 
     public function testSetServerUrlRequiresValidUri()