Skip to content

Commit

Permalink
Return null when expected
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Sep 17, 2024
1 parent 9e9bc1b commit 49ee769
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/SpecTests/DocumentsMatchConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public function evaluate($other, string $description = '', bool $returnResult =
if (! $success) {
$this->fail($other, $description, $this->lastFailure);
}

return null;
}

/** @param string|BSONArray[] $expectedType */
Expand Down
2 changes: 2 additions & 0 deletions tests/UnifiedSpecTests/Constraint/Matches.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public function evaluate($other, $description = '', $returnResult = false): ?boo
if (! $success) {
$this->fail($other, $description, $this->lastFailure);
}

return null;
}

private function assertEquals($expected, $actual, string $keyPath): void
Expand Down

0 comments on commit 49ee769

Please sign in to comment.