diff --git a/tests/UnifiedSpecTests/ManagesFailPointsTrait.php b/tests/UnifiedSpecTests/ManagesFailPointsTrait.php index d88368fa9..a1c313074 100644 --- a/tests/UnifiedSpecTests/ManagesFailPointsTrait.php +++ b/tests/UnifiedSpecTests/ManagesFailPointsTrait.php @@ -7,7 +7,7 @@ use stdClass; use function PHPUnit\Framework\assertIsString; -use function PHPUnit\Framework\assertObjectHasAttribute; +use function PHPUnit\Framework\assertObjectHasProperty; trait ManagesFailPointsTrait { @@ -16,9 +16,9 @@ trait ManagesFailPointsTrait public function configureFailPoint(stdClass $failPoint, Server $server): void { - assertObjectHasAttribute('configureFailPoint', $failPoint); + assertObjectHasProperty('configureFailPoint', $failPoint); assertIsString($failPoint->configureFailPoint); - assertObjectHasAttribute('mode', $failPoint); + assertObjectHasProperty('mode', $failPoint); $operation = new DatabaseCommand('admin', $failPoint); $operation->execute($server);