Skip to content

Commit

Permalink
Fixed ?
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Aug 19, 2023
1 parent 7ac88c6 commit 3c78b5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Polyfills/AssertObjectPropertyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testAssertObjectHasPropertyFailsOnInvalidInputTypePropertyName(

$this->expectException( 'TypeError' );

if ( \PHP_VERSION_ID >= 80100
if ( \PHP_VERSION_ID >= 80000
&& \version_compare( PHPUnit_Version::id(), '9.6.11', '>=' )
) {
$msg = 'assertObjectHasProperty(): Argument #1 ($propertyName) must be of type string, ';
Expand Down Expand Up @@ -73,7 +73,7 @@ public function testAssertObjectNotHasPropertyFailsOnInvalidInputTypePropertyNam

$this->expectException( 'TypeError' );

if ( \PHP_VERSION_ID >= 80100
if ( \PHP_VERSION_ID >= 80000
&& \version_compare( PHPUnit_Version::id(), '9.6.11', '>=' )
) {
$msg = 'assertObjectNotHasProperty(): Argument #1 ($propertyName) must be of type string, ';
Expand Down Expand Up @@ -121,7 +121,7 @@ public static function dataAssertObjectPropertyFailsOnInvalidInputTypePropertyNa
public function testAssertObjectHasPropertyFailsOnInvalidInputTypeObject( $input ) {
$this->expectException( 'TypeError' );

if ( \PHP_VERSION_ID >= 80100
if ( \PHP_VERSION_ID >= 80000
&& \version_compare( PHPUnit_Version::id(), '9.6.11', '>=' )
) {
$msg = 'assertObjectHasProperty(): Argument #2 ($object) must be of type object, ';
Expand All @@ -148,7 +148,7 @@ public function testAssertObjectHasPropertyFailsOnInvalidInputTypeObject( $input
public function testAssertObjectNotHasPropertyFailsOnInvalidInputTypeObject( $input ) {
$this->expectException( 'TypeError' );

if ( \PHP_VERSION_ID >= 80100
if ( \PHP_VERSION_ID >= 80000
&& \version_compare( PHPUnit_Version::id(), '9.6.11', '>=' )
) {
$msg = 'assertObjectNotHasProperty(): Argument #2 ($object) must be of type object, ';
Expand Down

0 comments on commit 3c78b5b

Please sign in to comment.