replaceNth() публичный статический Метод

public static replaceNth ( string $subject, string $search, string $replace, integer $nth ) : string
$subject string
$search string
$replace string
$nth integer
Результат string
Пример #1
0
 /**
  * @test
  */
 public function shouldReturnInputStringReplaceNthStringWhenNoSearchFound()
 {
     //given
     $subject = 'name = ? AND description =    ?';
     //when
     $replaceNth = Strings::replaceNth($subject, 'not there', 'IS NULL', 1);
     //then
     $this->assertEquals($subject, $replaceNth);
 }