diff --git a/tests/ShortcodeTest.php b/tests/ShortcodeTest.php index 3f8b54b..90c453f 100644 --- a/tests/ShortcodeTest.php +++ b/tests/ShortcodeTest.php @@ -46,9 +46,6 @@ public function testCustomShortcodeNoAttributes() $this->assertEquals($manager->doShortcode('[ipsum]'), $manager['ipsum']->getIpsum()); } - /** - * @todo Look into possible infinite recursion on line 72 - */ public function testNestedShortcode() { $manager = new ShortcodeManager(array( @@ -69,7 +66,7 @@ public function testNestedShortcode() //Permissive $this->assertEquals($manager->doShortcode('[foo][baz/][/foo]', 'foo|baz', true), 'foobaz'); - //$this->assertNotEquals($manager->doShortcode('[foo][baz/][/foo]', 'foo', true), 'foobaz'); //Memory error + $this->assertEquals($manager->doShortcode('[foo][baz/][/foo]', 'foo', true), 'foo[baz/]'); //I DO WHAT I WANT $this->assertEquals($manager->doShortcode('[foo][bar][baz/][/bar][/foo]', null, true), 'foobarbaz');