public function testInstanceOverrideStaticLang()
 {
     Validator::lang('ar');
     new Validator(array(), array(), 'en');
     $this->assertEquals('ar', Validator::lang(), 'instance defined lang should not replace static global lang');
 }
示例#2
0
 public function testDefaultLangShouldBeEn()
 {
     $validator = new Validator(array());
     $this->assertEquals('en', Validator::lang());
 }