@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | use PHPUnit\Runner\Version; |
| 15 | 15 | |
| 16 | 16 | // PHPUnit Compat. |
| 17 | -if ( \class_exists('\PHPUnit_Framework_IncompleteTestError') ) { |
|
| 17 | +if (\class_exists('\PHPUnit_Framework_IncompleteTestError')) { |
|
| 18 | 18 | \class_alias( |
| 19 | 19 | '\PHPUnit_Framework_IncompleteTestError', |
| 20 | 20 | '\ConsoleHelpers\PHPUnitCompat\Framework\IncompleteTestError' |
@@ -27,14 +27,14 @@ discard block |
||
| 27 | 27 | ); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | -if ( class_exists('\PHPUnit_Framework_SkippedTestError') ) { |
|
| 30 | +if (class_exists('\PHPUnit_Framework_SkippedTestError')) { |
|
| 31 | 31 | \class_alias('\PHPUnit_Framework_SkippedTestError', '\ConsoleHelpers\PHPUnitCompat\Framework\SkippedTestError'); |
| 32 | 32 | } |
| 33 | 33 | else { |
| 34 | 34 | \class_alias('\PHPUnit\Framework\SkippedTestError', '\ConsoleHelpers\PHPUnitCompat\Framework\SkippedTestError'); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | -if ( class_exists('\PHPUnit_Framework_TestSuite_DataProvider') ) { |
|
| 37 | +if (class_exists('\PHPUnit_Framework_TestSuite_DataProvider')) { |
|
| 38 | 38 | \class_alias( |
| 39 | 39 | '\PHPUnit_Framework_TestSuite_DataProvider', |
| 40 | 40 | '\ConsoleHelpers\PHPUnitCompat\Framework\DataProviderTestSuite' |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | ); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | -if ( class_exists('\PHPUnit_Framework_TestResult') ) { |
|
| 50 | +if (class_exists('\PHPUnit_Framework_TestResult')) { |
|
| 51 | 51 | \class_alias('\PHPUnit_Framework_TestResult', '\ConsoleHelpers\PHPUnitCompat\Framework\TestResult'); |
| 52 | 52 | } |
| 53 | 53 | else { |
@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | \class_alias('\PHPUnit\Framework\Test', '\ConsoleHelpers\PHPUnitCompat\Framework\Test'); |
| 62 | 62 | }*/ |
| 63 | 63 | |
| 64 | -if ( !\defined('PHPUNIT_COMPAT_RUNNER_VERSION') ) { |
|
| 65 | - if ( \class_exists('PHPUnit\Runner\Version') ) { |
|
| 64 | +if (!\defined('PHPUNIT_COMPAT_RUNNER_VERSION')) { |
|
| 65 | + if (\class_exists('PHPUnit\Runner\Version')) { |
|
| 66 | 66 | \define('PHPUNIT_COMPAT_RUNNER_VERSION', Version::id()); |
| 67 | 67 | } |
| 68 | 68 | else { |
@@ -121,14 +121,14 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | protected function verifyMockeryExpectations() |
| 123 | 123 | { |
| 124 | - if ( !\class_exists('Mockery') ) { |
|
| 124 | + if (!\class_exists('Mockery')) { |
|
| 125 | 125 | return; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | // Add Mockery expectations to assertion count. |
| 129 | 129 | $container = \Mockery::getContainer(); |
| 130 | 130 | |
| 131 | - if ( $container !== null ) { |
|
| 131 | + if ($container !== null) { |
|
| 132 | 132 | $this->addToAssertionCount($container->mockery_getExpectationCount()); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | -if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) { |
|
| 141 | +if (version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<')) { |
|
| 142 | 142 | require_once __DIR__ . '/AbstractTestCase5.php'; |
| 143 | 143 | } |
| 144 | 144 | else { |