/** * Returns the first tag in $str * Actually everything from the beginning of the $str is returned, so you better make sure the tag is the first thing... * * @test * @dataProvider getFirstTagDataProvider * * @param string $str HTML string with tags * @param string $expected The expected result. */ public function getFirstTag($str, $expected) { $this->assertEquals($expected, $this->subject->getFirstTag($str)); }