tokenize("Good muffins cost $3.88\nin New York. Please buy me\ntwo of them.\nThanks."); $this->assertCount(17, $tokens); } public function testMatchWordsOnly() { $tokenizer = new RegexTokenizer("/[A-Za-z]+/"); $tokens = $tokenizer->tokenize("Good muffins cost $3.88\nin New York. Please buy me\ntwo of them.\nThanks."); $this->assertCount(13, $tokens); } }