cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/Tokenizers/VanderleeTokenizerTest.php
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

25 lines
619 B
PHP

<?php
namespace Tests\TextAnalysis\Tokenizers;
use TextAnalysis\Tokenizers\VanderleeTokenizer;
/**
*
* @author yooper
*/
class VanderleeTokenizerTest extends \PHPUnit\Framework\TestCase
{
public function testTokenizer()
{
$tokenizer = new VanderleeTokenizer();
$sentences = $tokenizer->tokenize($this->getText());
$this->assertCount(5, $sentences);
}
protected function getText()
{
return <<<TEXT
Hello there, Mr. Smith. What're you doing today... Smith, my friend?\n\nI hope it's good. This last sentence will cost you $2.50! Just kidding :)
TEXT;
}
}