diff --git a/core/tests/Drupal/Tests/AssertHelperTrait.php b/core/tests/Drupal/Tests/AssertHelperTrait.php index 1ea613c390..62a85a4821 100644 --- a/core/tests/Drupal/Tests/AssertHelperTrait.php +++ b/core/tests/Drupal/Tests/AssertHelperTrait.php @@ -39,7 +39,7 @@ protected static function castSafeStrings($value) { * Option failure message. */ protected function expectAssertion($message = '') { - if (ini_get('zend.assertions') != 1) { + if (ini_get('zend.assertions') > 0) { $this->markTestSkipped( 'Assertions are not enabled. Set zend.assertions to 1 to run this test.' ); diff --git a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php index 11e93d2777..02530b5db5 100644 --- a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php @@ -343,7 +343,7 @@ public function testTransformRootRelativeUrlsToAbsolute($html, $scheme_and_host, * @dataProvider providerTestTransformRootRelativeUrlsToAbsoluteAssertion */ public function testTransformRootRelativeUrlsToAbsoluteAssertion($scheme_and_host) { - if (ini_get('zend.assertions') != 1) { + if (ini_get('zend.assertions') > 0) { $this->markTestSkipped( 'Assertions are not enabled. Set zend.assertions to 1 to run this test.' );