/** * Tests the text::distance() function. * @dataProvider distance_provider * @group core.helpers.text.distance * @test */ public function distance($str1, $str2, $expected_result) { $result = text::distance($str1, $str2); $this->assertEquals($expected_result, $result); }