/** * @param string $string * @param string $wantedResult * * @dataProvider removeWhitespaceDataProvider */ public function testRemoveWhitespace($string, $wantedResult) { $result = $this->stringUtility->removeWhitespace($string); $this->assertEquals($wantedResult, $result); }