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'); }
public function testDefaultLangShouldBeEn() { $validator = new Validator(array()); $this->assertEquals('en', Validator::lang()); }