From f37c6ddd6491e68614adb56505b4b1fca0550fe5 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 3 Jul 2015 17:44:02 +0200 Subject: [PATCH] well, just drop this... this test does not help much anyway. it is still tested for false in strict mode. --- tests/framework/validators/RequiredValidatorTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/framework/validators/RequiredValidatorTest.php b/tests/framework/validators/RequiredValidatorTest.php index db7344f..8e5cccc 100644 --- a/tests/framework/validators/RequiredValidatorTest.php +++ b/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;