@@ -67,7 +67,7 @@ |
||
| 67 | 67 | public function toString() |
| 68 | 68 | { |
| 69 | 69 | return 'attribute "' . $this->attributeName . '" ' . |
| 70 | - $this->innerConstraint->toString(); |
|
| 70 | + $this->innerConstraint->toString(); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /** |
@@ -123,10 +123,10 @@ |
||
| 123 | 123 | { |
| 124 | 124 | if (is_object($this->value)) { |
| 125 | 125 | return 'is identical to an object of class "' . |
| 126 | - get_class($this->value) . '"'; |
|
| 126 | + get_class($this->value) . '"'; |
|
| 127 | 127 | } else { |
| 128 | 128 | return 'is identical to ' . |
| 129 | - $this->exporter->export($this->value); |
|
| 129 | + $this->exporter->export($this->value); |
|
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | } |
@@ -31,23 +31,23 @@ |
||
| 31 | 31 | * @var array |
| 32 | 32 | */ |
| 33 | 33 | private static $ansiCodes = array( |
| 34 | - 'bold' => 1, |
|
| 35 | - 'fg-black' => 30, |
|
| 36 | - 'fg-red' => 31, |
|
| 37 | - 'fg-green' => 32, |
|
| 38 | - 'fg-yellow' => 33, |
|
| 39 | - 'fg-blue' => 34, |
|
| 40 | - 'fg-magenta' => 35, |
|
| 41 | - 'fg-cyan' => 36, |
|
| 42 | - 'fg-white' => 37, |
|
| 43 | - 'bg-black' => 40, |
|
| 44 | - 'bg-red' => 41, |
|
| 45 | - 'bg-green' => 42, |
|
| 46 | - 'bg-yellow' => 43, |
|
| 47 | - 'bg-blue' => 44, |
|
| 48 | - 'bg-magenta' => 45, |
|
| 49 | - 'bg-cyan' => 46, |
|
| 50 | - 'bg-white' => 47 |
|
| 34 | + 'bold' => 1, |
|
| 35 | + 'fg-black' => 30, |
|
| 36 | + 'fg-red' => 31, |
|
| 37 | + 'fg-green' => 32, |
|
| 38 | + 'fg-yellow' => 33, |
|
| 39 | + 'fg-blue' => 34, |
|
| 40 | + 'fg-magenta' => 35, |
|
| 41 | + 'fg-cyan' => 36, |
|
| 42 | + 'fg-white' => 37, |
|
| 43 | + 'bg-black' => 40, |
|
| 44 | + 'bg-red' => 41, |
|
| 45 | + 'bg-green' => 42, |
|
| 46 | + 'bg-yellow' => 43, |
|
| 47 | + 'bg-blue' => 44, |
|
| 48 | + 'bg-magenta' => 45, |
|
| 49 | + 'bg-cyan' => 46, |
|
| 50 | + 'bg-white' => 47 |
|
| 51 | 51 | ); |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -233,11 +233,11 @@ |
||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | $this->printer = new $printerClass( |
| 236 | - isset($arguments['stderr']) ? 'php://stderr' : null, |
|
| 237 | - $arguments['verbose'], |
|
| 238 | - $arguments['colors'], |
|
| 239 | - $arguments['debug'], |
|
| 240 | - $arguments['columns'] |
|
| 236 | + isset($arguments['stderr']) ? 'php://stderr' : null, |
|
| 237 | + $arguments['verbose'], |
|
| 238 | + $arguments['colors'], |
|
| 239 | + $arguments['debug'], |
|
| 240 | + $arguments['columns'] |
|
| 241 | 241 | ); |
| 242 | 242 | } |
| 243 | 243 | } |
@@ -242,44 +242,44 @@ discard block |
||
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | return array( |
| 245 | - 'blacklist' => array( |
|
| 245 | + 'blacklist' => array( |
|
| 246 | 246 | 'include' => array( |
| 247 | - 'directory' => $this->readFilterDirectories( |
|
| 248 | - 'filter/blacklist/directory' |
|
| 249 | - ), |
|
| 250 | - 'file' => $this->readFilterFiles( |
|
| 251 | - 'filter/blacklist/file' |
|
| 252 | - ) |
|
| 247 | + 'directory' => $this->readFilterDirectories( |
|
| 248 | + 'filter/blacklist/directory' |
|
| 249 | + ), |
|
| 250 | + 'file' => $this->readFilterFiles( |
|
| 251 | + 'filter/blacklist/file' |
|
| 252 | + ) |
|
| 253 | 253 | ), |
| 254 | 254 | 'exclude' => array( |
| 255 | - 'directory' => $this->readFilterDirectories( |
|
| 256 | - 'filter/blacklist/exclude/directory' |
|
| 257 | - ), |
|
| 258 | - 'file' => $this->readFilterFiles( |
|
| 259 | - 'filter/blacklist/exclude/file' |
|
| 260 | - ) |
|
| 255 | + 'directory' => $this->readFilterDirectories( |
|
| 256 | + 'filter/blacklist/exclude/directory' |
|
| 257 | + ), |
|
| 258 | + 'file' => $this->readFilterFiles( |
|
| 259 | + 'filter/blacklist/exclude/file' |
|
| 260 | + ) |
|
| 261 | 261 | ) |
| 262 | - ), |
|
| 263 | - 'whitelist' => array( |
|
| 262 | + ), |
|
| 263 | + 'whitelist' => array( |
|
| 264 | 264 | 'addUncoveredFilesFromWhitelist' => $addUncoveredFilesFromWhitelist, |
| 265 | 265 | 'processUncoveredFilesFromWhitelist' => $processUncoveredFilesFromWhitelist, |
| 266 | 266 | 'include' => array( |
| 267 | - 'directory' => $this->readFilterDirectories( |
|
| 268 | - 'filter/whitelist/directory' |
|
| 269 | - ), |
|
| 270 | - 'file' => $this->readFilterFiles( |
|
| 271 | - 'filter/whitelist/file' |
|
| 272 | - ) |
|
| 267 | + 'directory' => $this->readFilterDirectories( |
|
| 268 | + 'filter/whitelist/directory' |
|
| 269 | + ), |
|
| 270 | + 'file' => $this->readFilterFiles( |
|
| 271 | + 'filter/whitelist/file' |
|
| 272 | + ) |
|
| 273 | 273 | ), |
| 274 | 274 | 'exclude' => array( |
| 275 | - 'directory' => $this->readFilterDirectories( |
|
| 276 | - 'filter/whitelist/exclude/directory' |
|
| 277 | - ), |
|
| 278 | - 'file' => $this->readFilterFiles( |
|
| 279 | - 'filter/whitelist/exclude/file' |
|
| 280 | - ) |
|
| 275 | + 'directory' => $this->readFilterDirectories( |
|
| 276 | + 'filter/whitelist/exclude/directory' |
|
| 277 | + ), |
|
| 278 | + 'file' => $this->readFilterFiles( |
|
| 279 | + 'filter/whitelist/exclude/file' |
|
| 280 | + ) |
|
| 281 | + ) |
|
| 281 | 282 | ) |
| 282 | - ) |
|
| 283 | 283 | ); |
| 284 | 284 | } |
| 285 | 285 | |
@@ -293,8 +293,8 @@ discard block |
||
| 293 | 293 | public function getGroupConfiguration() |
| 294 | 294 | { |
| 295 | 295 | $groups = array( |
| 296 | - 'include' => array(), |
|
| 297 | - 'exclude' => array() |
|
| 296 | + 'include' => array(), |
|
| 297 | + 'exclude' => array() |
|
| 298 | 298 | ); |
| 299 | 299 | |
| 300 | 300 | foreach ($this->xpath->query('groups/include/group') as $group) { |
@@ -347,9 +347,9 @@ discard block |
||
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | $result[] = array( |
| 350 | - 'class' => $class, |
|
| 351 | - 'file' => $file, |
|
| 352 | - 'arguments' => $arguments |
|
| 350 | + 'class' => $class, |
|
| 351 | + 'file' => $file, |
|
| 352 | + 'arguments' => $arguments |
|
| 353 | 353 | ); |
| 354 | 354 | } |
| 355 | 355 | |
@@ -434,17 +434,17 @@ discard block |
||
| 434 | 434 | public function getPHPConfiguration() |
| 435 | 435 | { |
| 436 | 436 | $result = array( |
| 437 | - 'include_path' => array(), |
|
| 438 | - 'ini' => array(), |
|
| 439 | - 'const' => array(), |
|
| 440 | - 'var' => array(), |
|
| 441 | - 'env' => array(), |
|
| 442 | - 'post' => array(), |
|
| 443 | - 'get' => array(), |
|
| 444 | - 'cookie' => array(), |
|
| 445 | - 'server' => array(), |
|
| 446 | - 'files' => array(), |
|
| 447 | - 'request' => array() |
|
| 437 | + 'include_path' => array(), |
|
| 438 | + 'ini' => array(), |
|
| 439 | + 'const' => array(), |
|
| 440 | + 'var' => array(), |
|
| 441 | + 'env' => array(), |
|
| 442 | + 'post' => array(), |
|
| 443 | + 'get' => array(), |
|
| 444 | + 'cookie' => array(), |
|
| 445 | + 'server' => array(), |
|
| 446 | + 'files' => array(), |
|
| 447 | + 'request' => array() |
|
| 448 | 448 | ); |
| 449 | 449 | |
| 450 | 450 | foreach ($this->xpath->query('php/includePath') as $includePath) { |
@@ -840,11 +840,11 @@ discard block |
||
| 840 | 840 | } |
| 841 | 841 | |
| 842 | 842 | $result[] = array( |
| 843 | - 'name' => $name, |
|
| 844 | - 'browser' => $browser, |
|
| 845 | - 'host' => $host, |
|
| 846 | - 'port' => $port, |
|
| 847 | - 'timeout' => $timeout |
|
| 843 | + 'name' => $name, |
|
| 844 | + 'browser' => $browser, |
|
| 845 | + 'host' => $host, |
|
| 846 | + 'port' => $port, |
|
| 847 | + 'timeout' => $timeout |
|
| 848 | 848 | ); |
| 849 | 849 | } |
| 850 | 850 | |
@@ -1076,10 +1076,10 @@ discard block |
||
| 1076 | 1076 | } |
| 1077 | 1077 | |
| 1078 | 1078 | $directories[] = array( |
| 1079 | - 'path' => $this->toAbsolutePath($directoryPath), |
|
| 1080 | - 'prefix' => $prefix, |
|
| 1081 | - 'suffix' => $suffix, |
|
| 1082 | - 'group' => $group |
|
| 1079 | + 'path' => $this->toAbsolutePath($directoryPath), |
|
| 1080 | + 'prefix' => $prefix, |
|
| 1081 | + 'suffix' => $suffix, |
|
| 1082 | + 'group' => $group |
|
| 1083 | 1083 | ); |
| 1084 | 1084 | } |
| 1085 | 1085 | |
@@ -17,25 +17,25 @@ |
||
| 17 | 17 | * @var array |
| 18 | 18 | */ |
| 19 | 19 | protected static $superGlobalArrays = array( |
| 20 | - '_ENV', |
|
| 21 | - '_POST', |
|
| 22 | - '_GET', |
|
| 23 | - '_COOKIE', |
|
| 24 | - '_SERVER', |
|
| 25 | - '_FILES', |
|
| 26 | - '_REQUEST' |
|
| 20 | + '_ENV', |
|
| 21 | + '_POST', |
|
| 22 | + '_GET', |
|
| 23 | + '_COOKIE', |
|
| 24 | + '_SERVER', |
|
| 25 | + '_FILES', |
|
| 26 | + '_REQUEST' |
|
| 27 | 27 | ); |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * @var array |
| 31 | 31 | */ |
| 32 | 32 | protected static $superGlobalArraysLong = array( |
| 33 | - 'HTTP_ENV_VARS', |
|
| 34 | - 'HTTP_POST_VARS', |
|
| 35 | - 'HTTP_GET_VARS', |
|
| 36 | - 'HTTP_COOKIE_VARS', |
|
| 37 | - 'HTTP_SERVER_VARS', |
|
| 38 | - 'HTTP_POST_FILES' |
|
| 33 | + 'HTTP_ENV_VARS', |
|
| 34 | + 'HTTP_POST_VARS', |
|
| 35 | + 'HTTP_GET_VARS', |
|
| 36 | + 'HTTP_COOKIE_VARS', |
|
| 37 | + 'HTTP_SERVER_VARS', |
|
| 38 | + 'HTTP_POST_FILES' |
|
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | 41 | public static function getIncludedFilesAsString() |
@@ -133,8 +133,8 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | $buffer .= PHPUnit_Framework_TestFailure::exceptionToString($e) . |
| 136 | - "\n" . |
|
| 137 | - PHPUnit_Util_Filter::getFilteredStacktrace($e); |
|
| 136 | + "\n" . |
|
| 137 | + PHPUnit_Util_Filter::getFilteredStacktrace($e); |
|
| 138 | 138 | |
| 139 | 139 | $error = $this->document->createElement( |
| 140 | 140 | 'error', |
@@ -168,8 +168,8 @@ discard block |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | $buffer .= PHPUnit_Framework_TestFailure::exceptionToString($e) . |
| 171 | - "\n" . |
|
| 172 | - PHPUnit_Util_Filter::getFilteredStacktrace($e); |
|
| 171 | + "\n" . |
|
| 172 | + PHPUnit_Util_Filter::getFilteredStacktrace($e); |
|
| 173 | 173 | |
| 174 | 174 | $failure = $this->document->createElement( |
| 175 | 175 | 'failure', |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | ); |
| 76 | 76 | |
| 77 | 77 | $diagnostic = array( |
| 78 | - 'message' => $message[0], |
|
| 79 | - 'severity' => 'fail' |
|
| 78 | + 'message' => $message[0], |
|
| 79 | + 'severity' => 'fail' |
|
| 80 | 80 | ); |
| 81 | 81 | |
| 82 | 82 | if ($e instanceof PHPUnit_Framework_ExpectationFailedException) { |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | if ($cf !== null) { |
| 86 | 86 | $diagnostic['data'] = array( |
| 87 | - 'got' => $cf->getActual(), |
|
| 88 | - 'expected' => $cf->getExpected() |
|
| 87 | + 'got' => $cf->getActual(), |
|
| 88 | + 'expected' => $cf->getExpected() |
|
| 89 | 89 | ); |
| 90 | 90 | } |
| 91 | 91 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | } else { |
| 56 | 56 | if ($test instanceof PHPUnit_Framework_TestCase) { |
| 57 | 57 | return array( |
| 58 | - get_class($test), $test->getName() |
|
| 58 | + get_class($test), $test->getName() |
|
| 59 | 59 | ); |
| 60 | 60 | } elseif ($test instanceof PHPUnit_Framework_SelfDescribing) { |
| 61 | 61 | return array('', $test->toString()); |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | return array( |
| 327 | - 'class' => $class, 'code' => $code, 'message' => $message, 'message_regex' => $messageRegExp |
|
| 327 | + 'class' => $class, 'code' => $code, 'message' => $message, 'message_regex' => $messageRegExp |
|
| 328 | 328 | ); |
| 329 | 329 | } |
| 330 | 330 | |
@@ -522,8 +522,8 @@ discard block |
||
| 522 | 522 | } |
| 523 | 523 | |
| 524 | 524 | return array( |
| 525 | - 'class' => self::$annotationCache[$className], |
|
| 526 | - 'method' => !empty($methodName) ? self::$annotationCache[$className . '::' . $methodName] : array() |
|
| 525 | + 'class' => self::$annotationCache[$className], |
|
| 526 | + 'method' => !empty($methodName) ? self::$annotationCache[$className . '::' . $methodName] : array() |
|
| 527 | 527 | ); |
| 528 | 528 | } |
| 529 | 529 | |
@@ -564,16 +564,16 @@ discard block |
||
| 564 | 564 | public static function getBackupSettings($className, $methodName) |
| 565 | 565 | { |
| 566 | 566 | return array( |
| 567 | - 'backupGlobals' => self::getBooleanAnnotationSetting( |
|
| 568 | - $className, |
|
| 569 | - $methodName, |
|
| 570 | - 'backupGlobals' |
|
| 571 | - ), |
|
| 572 | - 'backupStaticAttributes' => self::getBooleanAnnotationSetting( |
|
| 573 | - $className, |
|
| 574 | - $methodName, |
|
| 575 | - 'backupStaticAttributes' |
|
| 576 | - ) |
|
| 567 | + 'backupGlobals' => self::getBooleanAnnotationSetting( |
|
| 568 | + $className, |
|
| 569 | + $methodName, |
|
| 570 | + 'backupGlobals' |
|
| 571 | + ), |
|
| 572 | + 'backupStaticAttributes' => self::getBooleanAnnotationSetting( |
|
| 573 | + $className, |
|
| 574 | + $methodName, |
|
| 575 | + 'backupStaticAttributes' |
|
| 576 | + ) |
|
| 577 | 577 | ); |
| 578 | 578 | } |
| 579 | 579 | |