add test to show the bug

This commit is contained in:
Marcos Neves 2013-08-17 12:14:19 -03:00
parent 12ebfb312f
commit ca4f6737dc

View 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');
}
}