X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b8ebc169b104dae171731288a5a8a7b569d22530..4a2873617dcbaf58ff6135aa7d8dcb115c0cc5ba:/test/php/Nominatim/PhraseTest.php?ds=inline diff --git a/test/php/Nominatim/PhraseTest.php b/test/php/Nominatim/PhraseTest.php index c23d6483..42166e34 100644 --- a/test/php/Nominatim/PhraseTest.php +++ b/test/php/Nominatim/PhraseTest.php @@ -2,7 +2,7 @@ namespace Nominatim; -require_once(CONST_BasePath.'/lib/Phrase.php'); +require_once(CONST_LibDir.'/Phrase.php'); class TokensFullSet { @@ -113,9 +113,9 @@ class PhraseTest extends \PHPUnit\Framework\TestCase $oPhrase = new Phrase(join(' ', array_fill(0, 18, 'a')), ''); $oPhrase->computeWordSets(new TokensFullSet()); - $this->assertEquals(Phrase::MAX_WORDSETS, count($oPhrase->getWordSets())); + $this->assertEquals(100, count($oPhrase->getWordSets())); $oPhrase->invertWordSets(); - $this->assertEquals(Phrase::MAX_WORDSETS, count($oPhrase->getWordSets())); + $this->assertEquals(100, count($oPhrase->getWordSets())); }