public function testCountWordsWithNewLine() { $wc = new WordCount(); $test_sentence = "My name is \n\r John"; $wordcount = $wc->countWords($test_sentence); $this->assertEquals(4, $wordcount); }
public function testCountWords() { $Wc = new WordCount(); $TestSentence = "my name is afif"; $WordCount = $Wc->countWords($TestSentence); $this->assertEquals(4, $WordCount); }