Skip to content

Commit

Permalink
Using assertCount to make assert equals count
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Feb 24, 2023
1 parent 3f86d66 commit 7aa5408
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/unit/DynamicSequenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testEqualNonInfinite(
++$iterationsCount;
}

$this->assertEquals(count($expected), $iterationsCount);
$this->assertCount($iterationsCount, $expected);

// readonly checks
foreach ($sequence as $index => $value) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ExponentialTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testEqualNonInfinite(array $config, array $expected): void
++$iterationsCount;
}

$this->assertEquals(count($expected), $iterationsCount);
$this->assertCount($iterationsCount, $expected);

// readonly checks
foreach ($range as $index => $value) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/RangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testEqualNonInfinite(array $config, array $expected): void
++$iterationsCount;
}

$this->assertEquals(count($expected), $iterationsCount);
$this->assertCount($iterationsCount, $expected);

// readonly checks
foreach ($range as $index => $value) {
Expand Down

0 comments on commit 7aa5408

Please sign in to comment.