function testOmitLanguages()
 {
     $str = 'This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE, such as 0 or "". Please read the section on Booleans for more information. Use the === operator for testing the return value of this function.';
     $myobj = new Text_LanguageDetect();
     $myobj->_use_unicode_narrowing = false;
     $count = $myobj->getLanguageCount();
     $returnval = $myobj->omitLanguages('english');
     $newcount = $myobj->getLanguageCount();
     $this->assertEquals(1, $returnval);
     $this->assertEquals(1, $count - $newcount);
     $result = strtolower($myobj->detectSimple($str));
     $this->assertTrue($result != 'english', $result);
     $myobj = new Text_LanguageDetect();
     $count = $myobj->getLanguageCount();
     $returnval = $myobj->omitLanguages(array('danish', 'italian'), true);
     $newcount = $myobj->getLanguageCount();
     $this->assertEquals($count - $newcount, $returnval);
     $this->assertEquals($count - $returnval, $newcount);
     $result = strtolower($myobj->detectSimple($str));
     $this->assertTrue($result == 'danish' || $result == 'italian', $result);
     $result = $myobj->detect($str);
     $this->assertEquals(2, count($result));
     $this->assertTrue(isset($result['danish']));
     $this->assertTrue(isset($result['italian']));
     unset($myobj);
 }