/** * @test */ public function extractHtmlTagsWorks() { $input = 'So.. I want to know... <h2>How do you feel?</h2>This is <p><b>some</b>Text.<h2>I Feel so good</h2>... so good...</p>'; $expected = array('text' => 'So.. I want to know... This is some Text. ... so good... ', 'h2' => ' How do you feel? I Feel so good '); $this->assertSame($expected, $this->helper->extractHtmlTags($input)); }