From f4a7411791527935c426266f0aca0dba38f02780 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 5 Aug 2024 14:02:43 +0200 Subject: [PATCH] tests: Fix call to undefined method --- tests/Common/CsrfCounterMeasureTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'