3 __DIR__ . '/../' . PATH_SEPARATOR . get_include_path()
6 require_once 'Text/LanguageDetect/ISO639.php';
8 class Text_LanguageDetect_ISO639Test extends PHPUnit_Framework_TestCase
10 public function testNameToCode2()
14 Text_LanguageDetect_ISO639::nameToCode2('german')
18 public function testNameToCode2Fail()
21 Text_LanguageDetect_ISO639::nameToCode2('doesnotexist')
25 public function testNameToCode3()
29 Text_LanguageDetect_ISO639::nameToCode3('french')
33 public function testNameToCode3Fail()
36 Text_LanguageDetect_ISO639::nameToCode3('doesnotexist')
40 public function testCode2ToName()
44 Text_LanguageDetect_ISO639::code2ToName('en')
48 public function testCode2ToNameFail()
51 Text_LanguageDetect_ISO639::code2ToName('nx')
55 public function testCode3ToName()
59 Text_LanguageDetect_ISO639::code3ToName('rom')
63 public function testCode3ToNameFail()
66 Text_LanguageDetect_ISO639::code3ToName('nxx')