Skip to content

Commit

Permalink
refactor deprecated phpunit function
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaroWalter committed May 23, 2024
1 parent 6e882c6 commit 9605eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/review_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ private function assert_matches_properties($expected, $actual) {
$expected = (array)$expected;
$actual = (object)$actual;
foreach ($expected as $key => $value) {
$this->assertObjectHasAttribute($key, $actual, "Failed asserting that attribute '$key' exists.");
$this->assertObjectHasProperty($key, $actual, "Failed asserting that attribute '$key' exists.");
$this->assertEquals($value, $actual->$key, "Failed asserting that \$obj->$key '" . $actual->$key . "' equals '$value'");
}
}
Expand Down

0 comments on commit 9605eba

Please sign in to comment.