/** * Tests the text::censor() function. * @dataProvider censor_provider * @group core.helpers.text.censor * @test */ public function censor($str, $badwords, $replacement = '#', $replace_partial_words = FALSE, $expected_result) { $result = text::censor($str, $badwords, $replacement, $replace_partial_words); $this->assertEquals($expected_result, $result); }