From 8f83535e4fa64a690917dd70aefc60065861e98d Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 13 Jan 2021 00:22:25 +0100 Subject: [PATCH] Update the tests. --- tests/phpunit/Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/Test.php b/tests/phpunit/Test.php index cde5783..803e791 100644 --- a/tests/phpunit/Test.php +++ b/tests/phpunit/Test.php @@ -279,7 +279,7 @@ protected function register_post_types() { protected static function get_minimum_version( string $type, string $filename ) { $file = file_get_contents( $filename ); - $pattern = '/^\*\*' . preg_quote( $type ) . ':\*\* (?P[0-9]\.[0-9])/m'; + $pattern = '/^\* \*\*' . preg_quote( $type ) . ':\*\* (?P[0-9]\.[0-9])/m'; if ( ! preg_match( $pattern, $file, $matches ) ) { return false;