mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +00:00
add test to show the bug
This commit is contained in:
parent
12ebfb312f
commit
ca4f6737dc
13
tests/Valitron/StaticVsInstanceTest.php
Normal file
13
tests/Valitron/StaticVsInstanceTest.php
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?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');
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user