Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Apr 3, 2020
1 parent 78e653f commit 784e696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/RandomTest.php
Expand Up @@ -17,12 +17,12 @@ public function testRandomStringRespectsLength(): void
public function testRandomStringValidSymbols(): void
{
$key = Random::string(100);
$this->assertRegExp('/[A-Za-z0-9_-]+/', $key);
$this->assertMatchesRegularExpression('/[A-Za-z0-9_-]+/', $key);
}

public function testInvalidLength(): void
{
$this->expectException(\InvalidArgumentException::class);
$key = Random::string(0);
Random::string(0);
}
}

0 comments on commit 784e696

Please sign in to comment.