public function testMd5() { $str = 'abcd'; $url = new URL(); $newStr = $url->strMd5($str); $this->assertTrue($newStr != null); $this->assertEquals($newStr, 'bbcd'); }
/** * @param $originalString * @param $expectedResult * * @dataProvider providerTestSluggifyReturnsSluggifiedString */ public function testSluggifyReturnsSluggifiedString($originalString, $expectedResult) { $url = new URL(); $result = $url->sluggify($originalString); $this->assertEquals($expectedResult, $result); }