Skip to content

Commit

Permalink
use assertNotEmpty instead of assertNotCount
Browse files Browse the repository at this point in the history
  • Loading branch information
FRFlor committed Jun 17, 2024
1 parent 3921018 commit 4d8b13e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Asserts/Traits/UsesElementAsserts.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public function find(string $selector, $callback = null): self
public function each(string $selector, $callback): self
{
$elements = $this->getParser()->queryAll($selector);
Assert::assertNotCount(
0,
Assert::assertNotEmpty(
$elements,
sprintf('Could not find any matching element for selector "%s"', $selector)
);
Expand Down

0 comments on commit 4d8b13e

Please sign in to comment.