Skip to content

Commit

Permalink
style(WPCLITest.php) spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Apr 3, 2020
1 parent 08f7038 commit 6a0e83e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/unit/Codeception/Module/WPCLITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ public function it_should_cast_wp_cli_errors_to_exceptions_if_specified_in_confi

$this->expectException(ModuleException::class);

$pattern = '/' . preg_quote( $error, '/' ) . '/';
if (method_exists($this,'expectExceptionMessageMatches')) {
$this->expectExceptionMessageMatches( $pattern );
}else{
$this->expectExceptionMessageRegExp( $pattern );
}

$cli->cli('core version');
$pattern = '/' . preg_quote($error, '/') . '/';
if (method_exists($this, 'expectExceptionMessageMatches')) {
$this->expectExceptionMessageMatches($pattern);
} else {
$this->expectExceptionMessageRegExp($pattern);
}

$cli->cli('core version');
}

/**
Expand Down

0 comments on commit 6a0e83e

Please sign in to comment.