Browse Source

well, just drop this...

this test does not help much anyway. it is still tested for false in strict mode.
tags/2.0.6
Carsten Brandt 9 years ago
parent
commit
f37c6ddd64
  1. 4
      tests/framework/validators/RequiredValidatorTest.php

4
tests/framework/validators/RequiredValidatorTest.php

@ -30,10 +30,6 @@ class RequiredValidatorTest extends TestCase
$val = new RequiredValidator(['requiredValue' => 55]);
$this->assertTrue($val->validate(55));
$this->assertTrue($val->validate("55"));
if (defined('HHVM_VERSION') || version_compare(PHP_VERSION, '7.0.0', '<')) {
// hex to int conversion of strings is not available in php7 anymore
$this->assertTrue($val->validate("0x37"));
}
$this->assertFalse($val->validate("should fail"));
$this->assertTrue($val->validate(true));
$val->strict = true;

Loading…
Cancel
Save