tm = $this->make('e107TinyMceParser'); } catch (Exception $e) { $this->fail("Couldn't load e107TinyMceParser object"); } } public function testToHtml() { } public function testToBBcode() { $test_1 = ' 2 '; $actual_1 = $this->tm->toBBcode($test_1); $expected_1 = '[html] 2[/html]'; // echo $actual; $this->assertEquals($expected_1, $actual_1); $test_2 = '

E107 AboutSome text

E107 AboutSome other text

'; $actual_2 = $this->tm->toBBcode($test_2); $expected_2 = '[html]

[img class=bbcode-img-right&width=300]{e_MEDIA_IMAGE}2017-11/e107_about.png[/img]Some text

[img class=bbcode-img-left&width=600]{e_MEDIA_IMAGE}2017-11/e107_about.png[/img]Some other text

[/html]'; $this->assertEquals($expected_2, $actual_2); } }