assertEqual( $this->filter("[b]bold[/b][i]italic[/i]"), "bolditalic"); } public function testStacking() { $this->assertEqual( $this->filter("[b]B[/b][i]I[/i][b]B[/b]"), "BIB"); $this->assertEqual( $this->filter("[b]bold[i]bolditalic[/i]bold[/b]"), "boldbolditalicbold"); } public function testFailure() { $this->assertEqual( $this->filter("[b]bold[i]italic"), "[b]bold[i]italic"); } public function testCode() { $this->assertEqual( $this->filter("[code][b]bold[/b][/code]"), "
[b]bold[/b]"); } public function testNestedList() { $this->assertEqual( $this->filter("[list][*]a[list][*]a[*]b[/list][*]b[/list]"), "