Skip to content

Commit

Permalink
Update the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Jan 12, 2021
1 parent 7d5620f commit 8f83535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<version>[0-9]\.[0-9])/m';
$pattern = '/^\* \*\*' . preg_quote( $type ) . ':\*\* (?P<version>[0-9]\.[0-9])/m';

if ( ! preg_match( $pattern, $file, $matches ) ) {
return false;
Expand Down

0 comments on commit 8f83535

Please sign in to comment.