@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | if (!$this->isAnonymous()) { |
| 377 | 377 | for ($i = $this->id; $i; --$i) { |
| 378 | 378 | if ($tokens[$i] instanceof PHP_Token_NAMESPACE) { |
| 379 | - $this->name = $tokens[$i]->getName() . '\\' . $this->name; |
|
| 379 | + $this->name = $tokens[$i]->getName().'\\'.$this->name; |
|
| 380 | 380 | |
| 381 | 381 | break; |
| 382 | 382 | } |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | |
| 522 | 522 | if (preg_match('/@subpackage[\s]+([\.\w]+)/', $docComment, $matches)) { |
| 523 | 523 | $result['subpackage'] = $matches[1]; |
| 524 | - $result['fullPackage'] .= '.' . $matches[1]; |
|
| 524 | + $result['fullPackage'] .= '.'.$matches[1]; |
|
| 525 | 525 | } |
| 526 | 526 | |
| 527 | 527 | if (empty($result['fullPackage'])) { |
@@ -714,7 +714,7 @@ discard block |
||
| 714 | 714 | } |
| 715 | 715 | |
| 716 | 716 | if ($next instanceof PHP_Token_STRING) { |
| 717 | - $this->name =(string) $next; |
|
| 717 | + $this->name = (string) $next; |
|
| 718 | 718 | |
| 719 | 719 | return $this->name; |
| 720 | 720 | } |
@@ -1277,10 +1277,10 @@ discard block |
||
| 1277 | 1277 | $tokens = $this->tokenStream->tokens(); |
| 1278 | 1278 | $namespace = (string) $tokens[$this->id + 2]; |
| 1279 | 1279 | |
| 1280 | - for ($i = $this->id + 3;; $i += 2) { |
|
| 1280 | + for ($i = $this->id + 3; ; $i += 2) { |
|
| 1281 | 1281 | if (isset($tokens[$i]) && |
| 1282 | 1282 | $tokens[$i] instanceof PHP_Token_NS_SEPARATOR) { |
| 1283 | - $namespace .= '\\' . $tokens[$i + 1]; |
|
| 1283 | + $namespace .= '\\'.$tokens[$i + 1]; |
|
| 1284 | 1284 | } else { |
| 1285 | 1285 | break; |
| 1286 | 1286 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $skip = 2; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - $tokenClass = 'PHP_Token_' . $name; |
|
| 175 | + $tokenClass = 'PHP_Token_'.$name; |
|
| 176 | 176 | } else { |
| 177 | 177 | $text = $token; |
| 178 | 178 | $tokenClass = self::$customTokens[$token]; |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | $this->classes[$class[count($class) - 1]]['methods'][$name] = $tmp; |
| 431 | 431 | |
| 432 | 432 | $this->addFunctionToMap( |
| 433 | - $class[count($class) - 1] . '::' . $name, |
|
| 433 | + $class[count($class) - 1].'::'.$name, |
|
| 434 | 434 | $tmp['startLine'], |
| 435 | 435 | $tmp['endLine'] |
| 436 | 436 | ); |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | $this->traits[$trait]['methods'][$name] = $tmp; |
| 439 | 439 | |
| 440 | 440 | $this->addFunctionToMap( |
| 441 | - $trait . '::' . $name, |
|
| 441 | + $trait.'::'.$name, |
|
| 442 | 442 | $tmp['startLine'], |
| 443 | 443 | $tmp['endLine'] |
| 444 | 444 | ); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function setFile($file) |
| 58 | 58 | { |
| 59 | - $distFile = $file . '.dist'; |
|
| 59 | + $distFile = $file.'.dist'; |
|
| 60 | 60 | |
| 61 | 61 | if (file_exists($file)) { |
| 62 | 62 | $this->template = file_get_contents($file); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $keys = array(); |
| 99 | 99 | |
| 100 | 100 | foreach ($this->values as $key => $value) { |
| 101 | - $keys[] = $this->openDelimiter . $key . $this->closeDelimiter; |
|
| 101 | + $keys[] = $this->openDelimiter.$key.$this->closeDelimiter; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | return str_replace($keys, $this->values, $this->template); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | ['#valid regexp#', 'valid regexp', 1], |
| 21 | 21 | [';val.*xp;', 'valid regexp', 1], |
| 22 | 22 | ['/val.*xp/i', 'VALID REGEXP', 1], |
| 23 | - ['/a val.*p/','valid regexp', 0], |
|
| 23 | + ['/a val.*p/', 'valid regexp', 0], |
|
| 24 | 24 | ]; |
| 25 | 25 | } |
| 26 | 26 | |
@@ -19,17 +19,17 @@ |
||
| 19 | 19 | $dir = __DIR__; |
| 20 | 20 | $files = [ |
| 21 | 21 | 'phpunit', // The 0 index is not used |
| 22 | - $dir . '/ConfigurationTest.php', |
|
| 23 | - $dir . '/GlobalStateTest.php', |
|
| 24 | - 'vfs://' . $dir . '/RegexTest.php', |
|
| 25 | - 'phpvfs53e46260465c7://' . $dir . '/TestTest.php', |
|
| 26 | - 'file://' . $dir . '/XmlTest.php' |
|
| 22 | + $dir.'/ConfigurationTest.php', |
|
| 23 | + $dir.'/GlobalStateTest.php', |
|
| 24 | + 'vfs://'.$dir.'/RegexTest.php', |
|
| 25 | + 'phpvfs53e46260465c7://'.$dir.'/TestTest.php', |
|
| 26 | + 'file://'.$dir.'/XmlTest.php' |
|
| 27 | 27 | ]; |
| 28 | 28 | |
| 29 | 29 | $this->assertEquals( |
| 30 | - "require_once '" . $dir . "/ConfigurationTest.php';\n" . |
|
| 31 | - "require_once '" . $dir . "/GlobalStateTest.php';\n" . |
|
| 32 | - "require_once 'file://" . $dir . "/XmlTest.php';\n", |
|
| 30 | + "require_once '".$dir."/ConfigurationTest.php';\n". |
|
| 31 | + "require_once '".$dir."/GlobalStateTest.php';\n". |
|
| 32 | + "require_once 'file://".$dir."/XmlTest.php';\n", |
|
| 33 | 33 | GlobalState::processIncludedFilesAsString($files) |
| 34 | 34 | ); |
| 35 | 35 | } |
@@ -122,19 +122,19 @@ discard block |
||
| 122 | 122 | public function requirementsProvider() |
| 123 | 123 | { |
| 124 | 124 | return [ |
| 125 | - ['testOne', []], |
|
| 126 | - ['testTwo', ['PHPUnit' => ['version' => '1.0', 'operator' => '']]], |
|
| 127 | - ['testThree', ['PHP' => ['version' => '2.0', 'operator' => '']]], |
|
| 128 | - ['testFour', [ |
|
| 125 | + ['testOne', []], |
|
| 126 | + ['testTwo', ['PHPUnit' => ['version' => '1.0', 'operator' => '']]], |
|
| 127 | + ['testThree', ['PHP' => ['version' => '2.0', 'operator' => '']]], |
|
| 128 | + ['testFour', [ |
|
| 129 | 129 | 'PHPUnit' => ['version' => '2.0', 'operator' => ''], |
| 130 | 130 | 'PHP' => ['version' => '1.0', 'operator' => ''], |
| 131 | 131 | ]], |
| 132 | - ['testFive', ['PHP' => ['version' => '5.4.0RC6', 'operator' => '']]], |
|
| 133 | - ['testSix', ['PHP' => ['version' => '5.4.0-alpha1', 'operator' => '']]], |
|
| 134 | - ['testSeven', ['PHP' => ['version' => '5.4.0beta2', 'operator' => '']]], |
|
| 135 | - ['testEight', ['PHP' => ['version' => '5.4-dev', 'operator' => '']]], |
|
| 136 | - ['testNine', ['functions' => ['testFunc']]], |
|
| 137 | - ['testTen', ['extensions' => ['testExt']]], |
|
| 132 | + ['testFive', ['PHP' => ['version' => '5.4.0RC6', 'operator' => '']]], |
|
| 133 | + ['testSix', ['PHP' => ['version' => '5.4.0-alpha1', 'operator' => '']]], |
|
| 134 | + ['testSeven', ['PHP' => ['version' => '5.4.0beta2', 'operator' => '']]], |
|
| 135 | + ['testEight', ['PHP' => ['version' => '5.4-dev', 'operator' => '']]], |
|
| 136 | + ['testNine', ['functions' => ['testFunc']]], |
|
| 137 | + ['testTen', ['extensions' => ['testExt']]], |
|
| 138 | 138 | ['testEleven', [ |
| 139 | 139 | 'OS' => 'SunOS', |
| 140 | 140 | 'OSFAMILY' => 'Solaris', |
@@ -497,12 +497,12 @@ discard block |
||
| 497 | 497 | public function missingRequirementsProvider() |
| 498 | 498 | { |
| 499 | 499 | return [ |
| 500 | - ['testOne', []], |
|
| 501 | - ['testNine', ['Function testFunc is required.']], |
|
| 502 | - ['testTen', ['Extension testExt is required.']], |
|
| 503 | - ['testAlwaysSkip', ['PHPUnit >= 1111111 is required.']], |
|
| 504 | - ['testAlwaysSkip2', ['PHP >= 9999999 is required.']], |
|
| 505 | - ['testAlwaysSkip3', ['Operating system matching /DOESNOTEXIST/i is required.']], |
|
| 500 | + ['testOne', []], |
|
| 501 | + ['testNine', ['Function testFunc is required.']], |
|
| 502 | + ['testTen', ['Extension testExt is required.']], |
|
| 503 | + ['testAlwaysSkip', ['PHPUnit >= 1111111 is required.']], |
|
| 504 | + ['testAlwaysSkip2', ['PHP >= 9999999 is required.']], |
|
| 505 | + ['testAlwaysSkip3', ['Operating system matching /DOESNOTEXIST/i is required.']], |
|
| 506 | 506 | ['testAllPossibleRequirements', [ |
| 507 | 507 | 'PHP >= 99-dev is required.', |
| 508 | 508 | 'PHPUnit >= 9-dev is required.', |
@@ -757,7 +757,7 @@ discard block |
||
| 757 | 757 | { |
| 758 | 758 | if (\strpos($test, 'Namespace') === 0) { |
| 759 | 759 | $expected = [ |
| 760 | - TEST_FILES_PATH . 'NamespaceCoveredClass.php' => $lines |
|
| 760 | + TEST_FILES_PATH.'NamespaceCoveredClass.php' => $lines |
|
| 761 | 761 | ]; |
| 762 | 762 | } elseif ($test === 'CoverageNoneTest') { |
| 763 | 763 | $expected = []; |
@@ -765,10 +765,10 @@ discard block |
||
| 765 | 765 | $expected = false; |
| 766 | 766 | } elseif ($test === 'CoverageFunctionTest') { |
| 767 | 767 | $expected = [ |
| 768 | - TEST_FILES_PATH . 'CoveredFunction.php' => $lines |
|
| 768 | + TEST_FILES_PATH.'CoveredFunction.php' => $lines |
|
| 769 | 769 | ]; |
| 770 | 770 | } else { |
| 771 | - $expected = [TEST_FILES_PATH . 'CoveredClass.php' => $lines]; |
|
| 771 | + $expected = [TEST_FILES_PATH.'CoveredClass.php' => $lines]; |
|
| 772 | 772 | } |
| 773 | 773 | |
| 774 | 774 | $this->assertEquals( |
@@ -834,7 +834,7 @@ discard block |
||
| 834 | 834 | public function testFunctionParenthesesAreAllowed() |
| 835 | 835 | { |
| 836 | 836 | $this->assertSame( |
| 837 | - [TEST_FILES_PATH . 'CoveredFunction.php' => \range(2, 4)], |
|
| 837 | + [TEST_FILES_PATH.'CoveredFunction.php' => \range(2, 4)], |
|
| 838 | 838 | Test::getLinesToBeCovered( |
| 839 | 839 | 'CoverageFunctionParenthesesTest', |
| 840 | 840 | 'testSomething' |
@@ -845,7 +845,7 @@ discard block |
||
| 845 | 845 | public function testFunctionParenthesesAreAllowedWithWhitespace() |
| 846 | 846 | { |
| 847 | 847 | $this->assertSame( |
| 848 | - [TEST_FILES_PATH . 'CoveredFunction.php' => \range(2, 4)], |
|
| 848 | + [TEST_FILES_PATH.'CoveredFunction.php' => \range(2, 4)], |
|
| 849 | 849 | Test::getLinesToBeCovered( |
| 850 | 850 | 'CoverageFunctionParenthesesWhitespaceTest', |
| 851 | 851 | 'testSomething' |
@@ -856,7 +856,7 @@ discard block |
||
| 856 | 856 | public function testMethodParenthesesAreAllowed() |
| 857 | 857 | { |
| 858 | 858 | $this->assertSame( |
| 859 | - [TEST_FILES_PATH . 'CoveredClass.php' => \range(31, 35)], |
|
| 859 | + [TEST_FILES_PATH.'CoveredClass.php' => \range(31, 35)], |
|
| 860 | 860 | Test::getLinesToBeCovered( |
| 861 | 861 | 'CoverageMethodParenthesesTest', |
| 862 | 862 | 'testSomething' |
@@ -867,7 +867,7 @@ discard block |
||
| 867 | 867 | public function testMethodParenthesesAreAllowedWithWhitespace() |
| 868 | 868 | { |
| 869 | 869 | $this->assertSame( |
| 870 | - [TEST_FILES_PATH . 'CoveredClass.php' => \range(31, 35)], |
|
| 870 | + [TEST_FILES_PATH.'CoveredClass.php' => \range(31, 35)], |
|
| 871 | 871 | Test::getLinesToBeCovered( |
| 872 | 872 | 'CoverageMethodParenthesesWhitespaceTest', |
| 873 | 873 | 'testSomething' |
@@ -879,7 +879,7 @@ discard block |
||
| 879 | 879 | { |
| 880 | 880 | $this->assertEquals( |
| 881 | 881 | [ |
| 882 | - TEST_FILES_PATH . 'NamespaceCoveredFunction.php' => \range(4, 7) |
|
| 882 | + TEST_FILES_PATH.'NamespaceCoveredFunction.php' => \range(4, 7) |
|
| 883 | 883 | ], |
| 884 | 884 | Test::getLinesToBeCovered( |
| 885 | 885 | \CoverageNamespacedFunctionTest::class, |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | protected function setUp() |
| 25 | 25 | { |
| 26 | 26 | $this->configuration = Configuration::getInstance( |
| 27 | - \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.xml' |
|
| 27 | + \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration.xml' |
|
| 28 | 28 | ); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | public function testShouldReadColorsWhenTrueInConfigurationFile() |
| 39 | 39 | { |
| 40 | - $configurationFilename = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.true.xml'; |
|
| 40 | + $configurationFilename = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration.colors.true.xml'; |
|
| 41 | 41 | $configurationInstance = Configuration::getInstance($configurationFilename); |
| 42 | 42 | $configurationValues = $configurationInstance->getPHPUnitConfiguration(); |
| 43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | public function testShouldReadColorsWhenFalseInConfigurationFile() |
| 48 | 48 | { |
| 49 | - $configurationFilename = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.false.xml'; |
|
| 49 | + $configurationFilename = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration.colors.false.xml'; |
|
| 50 | 50 | $configurationInstance = Configuration::getInstance($configurationFilename); |
| 51 | 51 | $configurationValues = $configurationInstance->getPHPUnitConfiguration(); |
| 52 | 52 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | public function testShouldReadColorsWhenEmptyInConfigurationFile() |
| 57 | 57 | { |
| 58 | - $configurationFilename = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.empty.xml'; |
|
| 58 | + $configurationFilename = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration.colors.empty.xml'; |
|
| 59 | 59 | $configurationInstance = Configuration::getInstance($configurationFilename); |
| 60 | 60 | $configurationValues = $configurationInstance->getPHPUnitConfiguration(); |
| 61 | 61 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | public function testShouldReadColorsWhenInvalidInConfigurationFile() |
| 66 | 66 | { |
| 67 | - $configurationFilename = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.invalid.xml'; |
|
| 67 | + $configurationFilename = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration.colors.invalid.xml'; |
|
| 68 | 68 | $configurationInstance = Configuration::getInstance($configurationFilename); |
| 69 | 69 | $configurationValues = $configurationInstance->getPHPUnitConfiguration(); |
| 70 | 70 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $dir = __DIR__; |
| 160 | 160 | $includePath = \ini_get('include_path'); |
| 161 | 161 | |
| 162 | - \ini_set('include_path', $dir . PATH_SEPARATOR . $includePath); |
|
| 162 | + \ini_set('include_path', $dir.PATH_SEPARATOR.$includePath); |
|
| 163 | 163 | |
| 164 | 164 | $this->assertEquals( |
| 165 | 165 | [ |
@@ -178,8 +178,8 @@ discard block |
||
| 178 | 178 | 3 => 19.78, |
| 179 | 179 | 4 => null, |
| 180 | 180 | 5 => new \stdClass, |
| 181 | - 6 => \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MyTestFile.php', |
|
| 182 | - 7 => \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'MyRelativePath', |
|
| 181 | + 6 => \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'MyTestFile.php', |
|
| 182 | + 7 => \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'MyRelativePath', |
|
| 183 | 183 | ], |
| 184 | 184 | ], |
| 185 | 185 | [ |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | [ |
| 229 | 229 | 'include_path' => |
| 230 | 230 | [ |
| 231 | - \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.', |
|
| 231 | + \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'.', |
|
| 232 | 232 | '/path/to/lib' |
| 233 | 233 | ], |
| 234 | 234 | 'ini' => ['foo' => ['value' => 'bar']], |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | { |
| 254 | 254 | $this->configuration->handlePHPConfiguration(); |
| 255 | 255 | |
| 256 | - $path = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.' . PATH_SEPARATOR . '/path/to/lib'; |
|
| 256 | + $path = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'.'.PATH_SEPARATOR.'/path/to/lib'; |
|
| 257 | 257 | $this->assertStringStartsWith($path, \ini_get('include_path')); |
| 258 | 258 | $this->assertEquals(false, \FOO); |
| 259 | 259 | $this->assertEquals(true, \BAR); |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | public function testXincludeInConfiguration() |
| 355 | 355 | { |
| 356 | 356 | $configurationWithXinclude = Configuration::getInstance( |
| 357 | - \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration_xinclude.xml' |
|
| 357 | + \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration_xinclude.xml' |
|
| 358 | 358 | ); |
| 359 | 359 | |
| 360 | 360 | $this->assertConfigurationEquals( |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | public function testWithEmptyConfigurations() |
| 370 | 370 | { |
| 371 | 371 | $emptyConfiguration = Configuration::getInstance( |
| 372 | - \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration_empty.xml' |
|
| 372 | + \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration_empty.xml' |
|
| 373 | 373 | ); |
| 374 | 374 | |
| 375 | 375 | $logging = $emptyConfiguration->getLoggingConfiguration(); |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | public function testGetTestSuiteNamesReturnsTheNamesIfDefined() |
| 441 | 441 | { |
| 442 | 442 | $configuration = Configuration::getInstance( |
| 443 | - \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.suites.xml' |
|
| 443 | + \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration.suites.xml' |
|
| 444 | 444 | ); |
| 445 | 445 | |
| 446 | 446 | $names = $configuration->getTestSuiteNames(); |
@@ -451,7 +451,7 @@ discard block |
||
| 451 | 451 | public function testTestSuiteConfigurationForASingleFileInASuite() |
| 452 | 452 | { |
| 453 | 453 | $configuration = Configuration::getInstance( |
| 454 | - \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.one-file-suite.xml' |
|
| 454 | + \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'configuration.one-file-suite.xml' |
|
| 455 | 455 | ); |
| 456 | 456 | |
| 457 | 457 | $config = $configuration->getTestSuiteConfiguration(); |
@@ -1,30 +1,30 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | if (!defined('TEST_FILES_PATH')) { |
| 3 | - define('TEST_FILES_PATH', __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR); |
|
| 3 | + define('TEST_FILES_PATH', __DIR__.DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR); |
|
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | ini_set('precision', 14); |
| 7 | 7 | ini_set('serialize_precision', 14); |
| 8 | 8 | |
| 9 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
| 9 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
| 10 | 10 | |
| 11 | 11 | // TODO: Figure out why (some of) these are required (the classes should be autoloaded instead) |
| 12 | -require_once TEST_FILES_PATH . 'BeforeAndAfterTest.php'; |
|
| 13 | -require_once TEST_FILES_PATH . 'BeforeClassAndAfterClassTest.php'; |
|
| 14 | -require_once TEST_FILES_PATH . 'TestWithTest.php'; |
|
| 15 | -require_once TEST_FILES_PATH . 'BeforeClassWithOnlyDataProviderTest.php'; |
|
| 16 | -require_once TEST_FILES_PATH . 'DataProviderSkippedTest.php'; |
|
| 17 | -require_once TEST_FILES_PATH . 'DataProviderDependencyTest.php'; |
|
| 18 | -require_once TEST_FILES_PATH . 'DataProviderIncompleteTest.php'; |
|
| 19 | -require_once TEST_FILES_PATH . 'InheritedTestCase.php'; |
|
| 20 | -require_once TEST_FILES_PATH . 'NoTestCaseClass.php'; |
|
| 21 | -require_once TEST_FILES_PATH . 'NoTestCases.php'; |
|
| 22 | -require_once TEST_FILES_PATH . 'NotPublicTestCase.php'; |
|
| 23 | -require_once TEST_FILES_PATH . 'NotVoidTestCase.php'; |
|
| 24 | -require_once TEST_FILES_PATH . 'OverrideTestCase.php'; |
|
| 25 | -require_once TEST_FILES_PATH . 'RequirementsClassBeforeClassHookTest.php'; |
|
| 26 | -require_once TEST_FILES_PATH . 'NoArgTestCaseTest.php'; |
|
| 27 | -require_once TEST_FILES_PATH . 'Singleton.php'; |
|
| 28 | -require_once TEST_FILES_PATH . 'Mockable.php'; |
|
| 29 | -require_once TEST_FILES_PATH . 'CoverageNamespacedFunctionTest.php'; |
|
| 30 | -require_once TEST_FILES_PATH . 'NamespaceCoveredFunction.php'; |
|
| 12 | +require_once TEST_FILES_PATH.'BeforeAndAfterTest.php'; |
|
| 13 | +require_once TEST_FILES_PATH.'BeforeClassAndAfterClassTest.php'; |
|
| 14 | +require_once TEST_FILES_PATH.'TestWithTest.php'; |
|
| 15 | +require_once TEST_FILES_PATH.'BeforeClassWithOnlyDataProviderTest.php'; |
|
| 16 | +require_once TEST_FILES_PATH.'DataProviderSkippedTest.php'; |
|
| 17 | +require_once TEST_FILES_PATH.'DataProviderDependencyTest.php'; |
|
| 18 | +require_once TEST_FILES_PATH.'DataProviderIncompleteTest.php'; |
|
| 19 | +require_once TEST_FILES_PATH.'InheritedTestCase.php'; |
|
| 20 | +require_once TEST_FILES_PATH.'NoTestCaseClass.php'; |
|
| 21 | +require_once TEST_FILES_PATH.'NoTestCases.php'; |
|
| 22 | +require_once TEST_FILES_PATH.'NotPublicTestCase.php'; |
|
| 23 | +require_once TEST_FILES_PATH.'NotVoidTestCase.php'; |
|
| 24 | +require_once TEST_FILES_PATH.'OverrideTestCase.php'; |
|
| 25 | +require_once TEST_FILES_PATH.'RequirementsClassBeforeClassHookTest.php'; |
|
| 26 | +require_once TEST_FILES_PATH.'NoArgTestCaseTest.php'; |
|
| 27 | +require_once TEST_FILES_PATH.'Singleton.php'; |
|
| 28 | +require_once TEST_FILES_PATH.'Mockable.php'; |
|
| 29 | +require_once TEST_FILES_PATH.'CoverageNamespacedFunctionTest.php'; |
|
| 30 | +require_once TEST_FILES_PATH.'NamespaceCoveredFunction.php'; |
|
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | public function testConstraintFileNotExists() |
| 250 | 250 | { |
| 251 | - $file = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php'; |
|
| 251 | + $file = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'ClassWithNonPublicAttributes.php'; |
|
| 252 | 252 | |
| 253 | 253 | $constraint = Assert::logicalNot( |
| 254 | 254 | Assert::fileExists() |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | |
| 279 | 279 | public function testConstraintFileNotExists2() |
| 280 | 280 | { |
| 281 | - $file = \dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php'; |
|
| 281 | + $file = \dirname(__DIR__).DIRECTORY_SEPARATOR.'_files'.DIRECTORY_SEPARATOR.'ClassWithNonPublicAttributes.php'; |
|
| 282 | 282 | |
| 283 | 283 | $constraint = Assert::logicalNot( |
| 284 | 284 | Assert::fileExists() |
@@ -1524,11 +1524,11 @@ discard block |
||
| 1524 | 1524 | |
| 1525 | 1525 | public function testConstraintCallback() |
| 1526 | 1526 | { |
| 1527 | - $closureReflect = function ($parameter) { |
|
| 1527 | + $closureReflect = function($parameter) { |
|
| 1528 | 1528 | return $parameter; |
| 1529 | 1529 | }; |
| 1530 | 1530 | |
| 1531 | - $closureWithoutParameter = function () { |
|
| 1531 | + $closureWithoutParameter = function() { |
|
| 1532 | 1532 | return true; |
| 1533 | 1533 | }; |
| 1534 | 1534 | |
@@ -1552,7 +1552,7 @@ discard block |
||
| 1552 | 1552 | |
| 1553 | 1553 | public function testConstraintCallbackFailure() |
| 1554 | 1554 | { |
| 1555 | - $constraint = Assert::callback(function () { |
|
| 1555 | + $constraint = Assert::callback(function() { |
|
| 1556 | 1556 | return false; |
| 1557 | 1557 | }); |
| 1558 | 1558 | |