Skip to content

Commit

Permalink
Removed deprecated warning because of assertRegExp
Browse files Browse the repository at this point in the history
Changed assertRegExp to assertMatchesRegularExpression because it is 
deprecated.
  • Loading branch information
schiederme committed Dec 19, 2020
1 parent 2be8cde commit 3f34f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ULIDGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function it_generates_an_ulid()
$entity = new \stdClass();
$generated = $generator->generate($em, $entity);
$this->assertEquals('string', gettype($generated));
$this->assertRegExp('/[0-9][A-Z]/', $generated);
$this->assertMatchesRegularExpression('/[0-9][A-Z]/', $generated);
$this->assertEquals(26, strlen($generated));
}
/**
Expand Down

0 comments on commit 3f34f3e

Please sign in to comment.