Commit 09c5e614 by Suralc

fix test

parent cde97847
...@@ -17,8 +17,8 @@ class BooleanValidatorTest extends TestCase ...@@ -17,8 +17,8 @@ class BooleanValidatorTest extends TestCase
$this->assertTrue($val->validateValue(false)); $this->assertTrue($val->validateValue(false));
$this->assertTrue($val->validateValue('0')); $this->assertTrue($val->validateValue('0'));
$this->assertTrue($val->validateValue('1')); $this->assertTrue($val->validateValue('1'));
$this->assertTrue($val->validateValue(null)); $this->assertFalse($val->validateValue(null));
$this->assertTrue($val->validateValue(array())); $this->assertFalse($val->validateValue(array()));
$val->strict = true; $val->strict = true;
$this->assertTrue($val->validateValue('0')); $this->assertTrue($val->validateValue('0'));
$this->assertTrue($val->validateValue('1')); $this->assertTrue($val->validateValue('1'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment