Skip to content

Commit

Permalink
Merge v1.x into v2.x (#1433)
Browse files Browse the repository at this point in the history
  • Loading branch information
mongodb-php-bot authored Sep 23, 2024
2 parents 1eaba83 + 64a2736 commit b1d33e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/UnifiedSpecTests/ManagesFailPointsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use stdClass;

use function PHPUnit\Framework\assertIsString;
use function PHPUnit\Framework\assertObjectHasAttribute;
use function PHPUnit\Framework\assertObjectHasProperty;

trait ManagesFailPointsTrait
{
Expand All @@ -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);
Expand Down

0 comments on commit b1d33e7

Please sign in to comment.