From 2ffa02d32909185088697f5bc6117dd7ca09c604 Mon Sep 17 00:00:00 2001 From: Nationalcat Date: Tue, 20 Jun 2017 18:36:10 +0800 Subject: [PATCH] Update ProfaneValidatorTest.php --- tests/ProfaneValidatorTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ProfaneValidatorTest.php b/tests/ProfaneValidatorTest.php index dd72042..d3c4b4c 100644 --- a/tests/ProfaneValidatorTest.php +++ b/tests/ProfaneValidatorTest.php @@ -29,7 +29,7 @@ class ProfaneValidatorTest extends PHPUnit_Framework_TestCase $this->mockConfigs(); $attribute = 'description'; $text = 'fck you bitch. 幹!'; - $parameters = ['es', 'en' , 'zh-TW']; + $parameters = ['es', 'en' , 'zh-tw']; $profane = new ProfaneValidator(); @@ -117,9 +117,9 @@ class ProfaneValidatorTest extends PHPUnit_Framework_TestCase $this->mockConfigs(); $profane = new ProfaneValidator(); - $profane->setDictionary(['es', 'en', 'it', 'zh-TW']); + $profane->setDictionary(['es', 'en', 'it', 'zh-tw']); - $expected = array_merge(include __DIR__.'/../src/dict/es.php', include __DIR__.'/../src/dict/en.php', include __DIR__.'/../src/dict/it.php', include __DIR__.'/../src/dict/zh-TW.php'); + $expected = array_merge(include __DIR__.'/../src/dict/es.php', include __DIR__.'/../src/dict/en.php', include __DIR__.'/../src/dict/it.php', include __DIR__.'/../src/dict/zh-tw.php'); $this->assertEquals($profane->getBadwords(), $expected); }