/** * Removes the first and last tag in the string * Anything before the first and after the last tags respectively is also removed * * @test * @dataProvider removeFirstAndLastTagDataProvider * @param string $str String to process * @param string $expectedResult */ public function removeFirstAndLastTag($str, $expectedResult) { $this->assertEquals($expectedResult, $this->subject->removeFirstAndLastTag($str)); }