/** * @test */ public function shouldReturnInputStringReplaceNthStringWhenNoSearchFound() { //given $subject = 'name = ? AND description = ?'; //when $replaceNth = Strings::replaceNth($subject, 'not there', 'IS NULL', 1); //then $this->assertEquals($subject, $replaceNth); }