diff --git a/tests/Common/CsrfCounterMeasureTest.php b/tests/Common/CsrfCounterMeasureTest.php index 023a5711..65ada56e 100644 --- a/tests/Common/CsrfCounterMeasureTest.php +++ b/tests/Common/CsrfCounterMeasureTest.php @@ -15,7 +15,7 @@ public function testTokenCreation() $token = $this->createElement(); $this->assertInstanceOf(HiddenElement::class, $token); - $this->assertMatchesRegularExpression( + $this->assertRegExp( '/ value="[^"]+\|[^"]+"/', (string) $token, 'The value is not rendered or does not contain a seed and a hash'