diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-10-25 01:57:18 +0200 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-10-29 22:00:06 +0100 |
commit | 8e4c5db766ce23d05b8507991b04fece743147de (patch) | |
tree | 55c89f2c145f47245e7d32380c92256051d6a8f2 /library/langdet/tests/Text_LanguageDetect_ISO639Test.php | |
parent | fe5f1e4d67d999ed3c6ef78dc4d49f5dd1a93056 (diff) | |
download | volse-hubzilla-8e4c5db766ce23d05b8507991b04fece743147de.tar.gz volse-hubzilla-8e4c5db766ce23d05b8507991b04fece743147de.tar.bz2 volse-hubzilla-8e4c5db766ce23d05b8507991b04fece743147de.zip |
:arrow_up: Update Text_LanguageDetect.
Update from v0.3.0 (2012) to v1.0.0 (2017) which should remove some
warnings and improve PHP7 support.
Using composer to handle this PEAR library now.
Fix a problem in FeedutilsTest.
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 |