Browse Source

fix test

tags/2.0.0-beta
Suralc 11 years ago
parent
commit
09c5e61462
  1. 4
      tests/unit/framework/validators/BooleanValidatorTest.php

4
tests/unit/framework/validators/BooleanValidatorTest.php

@ -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'));

Loading…
Cancel
Save