function test_perl_compatibility() { // if this test fails, then many of the others will $myobj = new Text_LanguageDetect(); $myobj->setPerlCompatible(true); $testtext = "hello"; $result = $myobj->_trigram($testtext); $this->assertTrue(!isset($result[' he'])); }