Exemplo n.º 1
0
 function test_findReplacePartial_severalWordsPartialMatch()
 {
     //Arrange
     $test_Phrase = new Phrase();
     $phrase = "I like to walk my cat to cathedral park.";
     $word_to_replace = "cat";
     $replace_with = "dog";
     //Act
     $result1 = $test_Phrase->findReplacePartial($phrase, $word_to_replace, $replace_with);
     //Assert
     $this->assertEquals("I like to walk my dog to doghedral park.", $result1);
 }