diff --git a/tests/ParserTest.php b/tests/ParserTest.php
index 2b9cd09..546e6ce 100644
--- a/tests/ParserTest.php
+++ b/tests/ParserTest.php
@@ -223,4 +223,14 @@ public function testAddParser()
'Text to be displayed.'
);
}
+
+ public function testEdgeCases()
+ {
+ $bbCode = new BBCode();
+
+ $this->assertEquals(
+ $bbCode->convertFromHtml('This is <b>test</b><strong></strong><strong></strong>'),
+ 'This[b] [/b][url=http://genert.org][b]is[/b] [i]<b>test</b><strong></strong><strong[/i]><[u]/stro[/u]ng>[/url]'
+ );
+ }
}