mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +00:00
14 lines
323 B
PHP
14 lines
323 B
PHP
<?php
|
|
use Valitron\Validator;
|
|
|
|
class StaticVsInstanceTest extends BaseTestCase
|
|
{
|
|
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');
|
|
}
|
|
}
|