Skip to content

Commit

Permalink
FIX: Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderwar committed Dec 19, 2022
1 parent 96e8523 commit 2d9fdc7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/TestGenerate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function testGenerate()
{
// over 1000 iterations tests that a generated name never exceeds the max chars
for ($i = 0; $i < 1000; $i++) {
$this->assertLessThanOrEqual(20, strlen(Namify::generate()));
$this->assertLessThanOrEqual(20, strlen(Namify::generate(maxLength: 20)));
}
}

Expand All @@ -29,7 +29,6 @@ public function testGenerateUnique()

public function testPermutations()
{
die(var_dump(Namify::calculatePermutations()));
$this->assertGreaterThanOrEqual(65000, Namify::calculatePermutations());
$this->assertGreaterThanOrEqual(725000, Namify::calculatePermutations());
}
}

0 comments on commit 2d9fdc7

Please sign in to comment.