/** * @test * */ public function it_returns_cleaned_profane_string_with_specified_character() { $pf = new ProfanityFilter($this->setConfig(), $this->setWhitelist()); $input = "I am a f*****g profane string."; $expected_result = "I am a ####ing profane string."; $result = $pf->clean($input, '#'); $this->assertEquals($expected_result, $result); }