Просмотр исходного кода

Added two failing unit tests

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20579 44c647ce-9c0f-0410-b52a-842ac1e357ba
dasprid 16 лет назад
Родитель
Сommit
3fa674be16
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      tests/Zend/Markup/BbcodeAndHtmlTest.php

+ 7 - 0
tests/Zend/Markup/BbcodeAndHtmlTest.php

@@ -271,6 +271,13 @@ class Zend_Markup_BbcodeAndHtmlTest extends PHPUnit_Framework_TestCase
         $this->assertEquals($expected, $this->_markup->render($input));
     }
 
+    public function testInvalidationAfterInvalidTag()
+    {
+        $input = "[b][list][*]Foo[/*][/list][/b]";
+        $expected = "<strong>[list][*]Foo[/*][/list]</strong>";
+        $this->assertEquals($expected, $this->_markup->render($input));
+    }
+
     public function testListTypes()
     {
         $types = array(