mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
14 lines
323 B
PHP
14 lines
323 B
PHP
<?php
|
|
use Valitron\Validator;
|
|
|
|
class StaticVsInstanceTest extends BaseTestCase
|
|
{
|
|
public function testInstanceOverrideStatic()
|
|
{
|
|
Validator::lang('ar');
|
|
new Validator(array(), array(), 'en');
|
|
$this->assertEquals('ar', Validator::lang(),
|
|
'lang defined statically should not be override by instance lang');
|
|
}
|
|
}
|