Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
steps:
- uses: zenstruck/.github/actions/php-cs-fixer@main
with:
php: 8.4
key: ${{ secrets.GPG_PRIVATE_KEY }}
token: ${{ secrets.COMPOSER_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion src/Browser/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __toString(): string
*/
public function assertMatches(string $expression, $expected): self
{
Assert::that($this->search($expression))->is($expected);
Assert::that($this->search($expression))->equals($expected);

return $this;
}
Expand Down
6 changes: 6 additions & 0 deletions tests/JsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,10 @@ public function can_match_json_schema(): void
JSON,
);
}

/** @test */
public function assoc_array_equals()
{
(new Json('{"foo": "bar", "bar": "baz"}'))->assertMatches('@', ['bar' => 'baz', 'foo' => 'bar']);
}
}
Loading