Browse Source

test for #ZF-8036. allows for '0' string title.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18584 44c647ce-9c0f-0410-b52a-842ac1e357ba
klassicd 16 năm trước cách đây
mục cha
commit
cbafb688aa
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      tests/Zend/View/Helper/HeadTitleTest.php

+ 9 - 0
tests/Zend/View/Helper/HeadTitleTest.php

@@ -221,6 +221,15 @@ class Zend_View_Helper_HeadTitleTest extends PHPUnit_Framework_TestCase
         $this->helper->headTitle('Message_1');
         $this->assertEquals('<title>Message 1 (en)</title>', $this->helper->toString());
     }
+    
+   /**
+    * @see ZF-8036
+    */
+    public function testHeadTitleZero()
+    {
+    	$this->helper->headTitle('0');
+    	$this->assertEquals('<title>0</title>', $this->helper->toString());
+    }
 }
 
 // Call Zend_View_Helper_HeadTitleTest::main() if this source file is executed directly.