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