diff options
author | git-marijus <mario@mariovavti.com> | 2017-11-04 10:22:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-04 10:22:58 +0100 |
commit | cfbeb1655daba511f4843b8ba070a247e233fb29 (patch) | |
tree | 8ef7bf1e06a5d223228b370121bda97695af7d0e /library/langdet/tests/Text_LanguageDetect_ISO639Test.php | |
parent | 1a737be2b408135177a9e94dcffd0f68c0aca90b (diff) | |
parent | 39c194c5c32e49f461b8b42a3f4e411a3a5cde3c (diff) | |
download | volse-hubzilla-cfbeb1655daba511f4843b8ba070a247e233fb29.tar.gz volse-hubzilla-cfbeb1655daba511f4843b8ba070a247e233fb29.tar.bz2 volse-hubzilla-cfbeb1655daba511f4843b8ba070a247e233fb29.zip |
Merge branch 'dev' into docu
Diffstat (limited to 'library/langdet/tests/Text_LanguageDetect_ISO639Test.php')
-rw-r--r-- | library/langdet/tests/Text_LanguageDetect_ISO639Test.php | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/library/langdet/tests/Text_LanguageDetect_ISO639Test.php b/library/langdet/tests/Text_LanguageDetect_ISO639Test.php deleted file mode 100644 index e01d715e1..000000000 --- a/library/langdet/tests/Text_LanguageDetect_ISO639Test.php +++ /dev/null @@ -1,72 +0,0 @@ -<?php -set_include_path( - __DIR__ . '/../' . PATH_SEPARATOR . get_include_path() -); - -require_once 'Text/LanguageDetect/ISO639.php'; - -class Text_LanguageDetect_ISO639Test extends PHPUnit_Framework_TestCase -{ - public function testNameToCode2() - { - $this->assertEquals( - 'de', - Text_LanguageDetect_ISO639::nameToCode2('german') - ); - } - - public function testNameToCode2Fail() - { - $this->assertNull( - Text_LanguageDetect_ISO639::nameToCode2('doesnotexist') - ); - } - - public function testNameToCode3() - { - $this->assertEquals( - 'fra', - Text_LanguageDetect_ISO639::nameToCode3('french') - ); - } - - public function testNameToCode3Fail() - { - $this->assertNull( - Text_LanguageDetect_ISO639::nameToCode3('doesnotexist') - ); - } - - public function testCode2ToName() - { - $this->assertEquals( - 'english', - Text_LanguageDetect_ISO639::code2ToName('en') - ); - } - - public function testCode2ToNameFail() - { - $this->assertNull( - Text_LanguageDetect_ISO639::code2ToName('nx') - ); - } - - public function testCode3ToName() - { - $this->assertEquals( - 'romanian', - Text_LanguageDetect_ISO639::code3ToName('rom') - ); - } - - public function testCode3ToNameFail() - { - $this->assertNull( - Text_LanguageDetect_ISO639::code3ToName('nxx') - ); - } - -} - -?>
\ No newline at end of file |