diff --git a/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php b/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php index a254dda..3ef3fce 100644 --- a/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php +++ b/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php @@ -43,9 +43,7 @@ public function testGenerateToken() $token = $this->generator->generateToken(); $this->assertTrue(ctype_print($token), 'is printable'); - $this->assertStringNotMatchesFormat('%S+%S', $token, 'is URI safe'); - $this->assertStringNotMatchesFormat('%S/%S', $token, 'is URI safe'); - $this->assertStringNotMatchesFormat('%S=%S', $token, 'is URI safe'); + $this->assertDoesNotMatchRegularExpression('#.+([+/=]).+#', $token, 'is URI safe'); } /**