public function testSluggifyReturnsExpectedForEmptyStrings() { $originalString = ''; $expectedResult = ''; var_dump($originalString); var_dump($expectedResult); $url = new URL(); $result = $url->sluggify($originalString); $this->assertEquals($expectedResult, $result); }
/** * @param string $originalString * @param string $expectedResult * * @dataProvider providerTest */ public function testSluggify($originalString, $expectedResult) { $url = new URL(); $result = $url->sluggify($originalString); $this->assertEquals($expectedResult, $result); }