@@ -103,7 +103,7 @@ |
||
103 | 103 | $time |
104 | 104 | ); |
105 | 105 | } else { |
106 | - set_error_handler(function ($errno, $errstr, $errfile, $errline) { |
|
106 | + set_error_handler(function($errno, $errstr, $errfile, $errline) { |
|
107 | 107 | throw new ErrorException($errstr, $errno, $errno, $errfile, $errline); |
108 | 108 | }); |
109 | 109 | try { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | |
93 | 93 | fwrite( |
94 | 94 | $pipe, |
95 | - '<?php require_once ' . var_export($this->tempFile, true) . '; ?>' |
|
95 | + '<?php require_once ' . var_export($this->tempFile, true) . '; ?>' |
|
96 | 96 | ); |
97 | 97 | } |
98 | 98 |
@@ -494,8 +494,8 @@ discard block |
||
494 | 494 | public static function findNodes(DOMDocument $dom, array $options, $isHtml = true) |
495 | 495 | { |
496 | 496 | $valid = array( |
497 | - 'id', 'class', 'tag', 'content', 'attributes', 'parent', |
|
498 | - 'child', 'ancestor', 'descendant', 'children', 'adjacent-sibling' |
|
497 | + 'id', 'class', 'tag', 'content', 'attributes', 'parent', |
|
498 | + 'child', 'ancestor', 'descendant', 'children', 'adjacent-sibling' |
|
499 | 499 | ); |
500 | 500 | |
501 | 501 | $filtered = array(); |
@@ -533,23 +533,23 @@ discard block |
||
533 | 533 | } // no tag selected, get them all |
534 | 534 | else { |
535 | 535 | $tags = array( |
536 | - 'a', 'abbr', 'acronym', 'address', 'area', 'b', 'base', 'bdo', |
|
537 | - 'big', 'blockquote', 'body', 'br', 'button', 'caption', 'cite', |
|
538 | - 'code', 'col', 'colgroup', 'dd', 'del', 'div', 'dfn', 'dl', |
|
539 | - 'dt', 'em', 'fieldset', 'form', 'frame', 'frameset', 'h1', 'h2', |
|
540 | - 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html', 'i', 'iframe', |
|
541 | - 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', |
|
542 | - 'map', 'meta', 'noframes', 'noscript', 'object', 'ol', 'optgroup', |
|
543 | - 'option', 'p', 'param', 'pre', 'q', 'samp', 'script', 'select', |
|
544 | - 'small', 'span', 'strong', 'style', 'sub', 'sup', 'table', |
|
545 | - 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title', |
|
546 | - 'tr', 'tt', 'ul', 'var', |
|
547 | - // HTML5 |
|
548 | - 'article', 'aside', 'audio', 'bdi', 'canvas', 'command', |
|
549 | - 'datalist', 'details', 'dialog', 'embed', 'figure', 'figcaption', |
|
550 | - 'footer', 'header', 'hgroup', 'keygen', 'mark', 'meter', 'nav', |
|
551 | - 'output', 'progress', 'ruby', 'rt', 'rp', 'track', 'section', |
|
552 | - 'source', 'summary', 'time', 'video', 'wbr' |
|
536 | + 'a', 'abbr', 'acronym', 'address', 'area', 'b', 'base', 'bdo', |
|
537 | + 'big', 'blockquote', 'body', 'br', 'button', 'caption', 'cite', |
|
538 | + 'code', 'col', 'colgroup', 'dd', 'del', 'div', 'dfn', 'dl', |
|
539 | + 'dt', 'em', 'fieldset', 'form', 'frame', 'frameset', 'h1', 'h2', |
|
540 | + 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html', 'i', 'iframe', |
|
541 | + 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', |
|
542 | + 'map', 'meta', 'noframes', 'noscript', 'object', 'ol', 'optgroup', |
|
543 | + 'option', 'p', 'param', 'pre', 'q', 'samp', 'script', 'select', |
|
544 | + 'small', 'span', 'strong', 'style', 'sub', 'sup', 'table', |
|
545 | + 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title', |
|
546 | + 'tr', 'tt', 'ul', 'var', |
|
547 | + // HTML5 |
|
548 | + 'article', 'aside', 'audio', 'bdi', 'canvas', 'command', |
|
549 | + 'datalist', 'details', 'dialog', 'embed', 'figure', 'figcaption', |
|
550 | + 'footer', 'header', 'hgroup', 'keygen', 'mark', 'meter', 'nav', |
|
551 | + 'output', 'progress', 'ruby', 'rt', 'rp', 'track', 'section', |
|
552 | + 'source', 'summary', 'time', 'video', 'wbr' |
|
553 | 553 | ); |
554 | 554 | |
555 | 555 | foreach ($tags as $tag) { |
@@ -807,7 +807,7 @@ |
||
807 | 807 | break; |
808 | 808 | } |
809 | 809 | } // range count of children |
810 | - elseif ($childOptions['less_than'] !== null && |
|
810 | + elseif ($childOptions['less_than'] !== null && |
|
811 | 811 | $childOptions['greater_than'] !== null) { |
812 | 812 | if (count($children) >= $childOptions['less_than'] || |
813 | 813 | count($children) <= $childOptions['greater_than']) { |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | array(0, 0), |
678 | 678 | // floats |
679 | 679 | array(2.3, 2.3), |
680 | - array(1/3, 1 - 2/3), |
|
680 | + array(1 / 3, 1 - 2 / 3), |
|
681 | 681 | array(log(0), log(0)), |
682 | 682 | // arrays |
683 | 683 | array(array(), array()), |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | array('a', 'b'), |
724 | 724 | array('a', 'A'), |
725 | 725 | // https://github.com/sebastianbergmann/phpunit/issues/1023 |
726 | - array('9E6666666','9E7777777'), |
|
726 | + array('9E6666666', '9E7777777'), |
|
727 | 727 | // integers |
728 | 728 | array(1, 2), |
729 | 729 | array(2, 1), |
@@ -939,8 +939,8 @@ discard block |
||
939 | 939 | array('0', 0), |
940 | 940 | array(2.3, '2.3'), |
941 | 941 | array('2.3', 2.3), |
942 | - array((string) (1/3), 1 - 2/3), |
|
943 | - array(1/3, (string) (1 - 2/3)), |
|
942 | + array((string) (1 / 3), 1 - 2 / 3), |
|
943 | + array(1 / 3, (string) (1 - 2 / 3)), |
|
944 | 944 | array('string representation', new ClassWithToString), |
945 | 945 | array(new ClassWithToString, 'string representation'), |
946 | 946 | ); |
@@ -3115,7 +3115,7 @@ discard block |
||
3115 | 3115 | { |
3116 | 3116 | $this->assertThat( |
3117 | 3117 | null, |
3118 | - $this->callback(function ($other) { return true; }) |
|
3118 | + $this->callback(function($other) { return true; }) |
|
3119 | 3119 | ); |
3120 | 3120 | } |
3121 | 3121 |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | Failed asserting that an array has the key 0. |
35 | 35 | |
36 | 36 | EOF |
37 | - , |
|
38 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
37 | + , |
|
38 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
39 | 39 | ); |
40 | 40 | |
41 | 41 | return; |
@@ -57,12 +57,12 @@ discard block |
||
57 | 57 | $constraint->evaluate(array(), 'custom message'); |
58 | 58 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
59 | 59 | $this->assertEquals( |
60 | - <<<EOF |
|
60 | + <<<EOF |
|
61 | 61 | custom message\nFailed asserting that an array has the key 0. |
62 | 62 | |
63 | 63 | EOF |
64 | - , |
|
65 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
64 | + , |
|
65 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
66 | 66 | ); |
67 | 67 | |
68 | 68 | return; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | public function testConstraintArrayNotHasKey() |
82 | 82 | { |
83 | 83 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
84 | - PHPUnit_Framework_Assert::arrayHasKey(0) |
|
84 | + PHPUnit_Framework_Assert::arrayHasKey(0) |
|
85 | 85 | ); |
86 | 86 | |
87 | 87 | $this->assertFalse($constraint->evaluate(array(0 => 1), '', true)); |
@@ -92,12 +92,12 @@ discard block |
||
92 | 92 | $constraint->evaluate(array(0 => 1)); |
93 | 93 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
94 | 94 | $this->assertEquals( |
95 | - <<<EOF |
|
95 | + <<<EOF |
|
96 | 96 | Failed asserting that an array does not have the key 0. |
97 | 97 | |
98 | 98 | EOF |
99 | - , |
|
100 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
99 | + , |
|
100 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
101 | 101 | ); |
102 | 102 | |
103 | 103 | return; |
@@ -116,20 +116,20 @@ discard block |
||
116 | 116 | public function testConstraintArrayNotHasKey2() |
117 | 117 | { |
118 | 118 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
119 | - PHPUnit_Framework_Assert::arrayHasKey(0) |
|
119 | + PHPUnit_Framework_Assert::arrayHasKey(0) |
|
120 | 120 | ); |
121 | 121 | |
122 | 122 | try { |
123 | 123 | $constraint->evaluate(array(0), 'custom message'); |
124 | 124 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
125 | 125 | $this->assertEquals( |
126 | - <<<EOF |
|
126 | + <<<EOF |
|
127 | 127 | custom message |
128 | 128 | Failed asserting that an array does not have the key 0. |
129 | 129 | |
130 | 130 | EOF |
131 | - , |
|
132 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
131 | + , |
|
132 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
133 | 133 | ); |
134 | 134 | |
135 | 135 | return; |
@@ -156,12 +156,12 @@ discard block |
||
156 | 156 | $constraint->evaluate('foo'); |
157 | 157 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
158 | 158 | $this->assertEquals( |
159 | - <<<EOF |
|
159 | + <<<EOF |
|
160 | 160 | Failed asserting that file "foo" exists. |
161 | 161 | |
162 | 162 | EOF |
163 | - , |
|
164 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
163 | + , |
|
164 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
165 | 165 | ); |
166 | 166 | |
167 | 167 | return; |
@@ -187,8 +187,8 @@ discard block |
||
187 | 187 | Failed asserting that file "foo" exists. |
188 | 188 | |
189 | 189 | EOF |
190 | - , |
|
191 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
190 | + , |
|
191 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
192 | 192 | ); |
193 | 193 | |
194 | 194 | return; |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php'; |
210 | 210 | |
211 | 211 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
212 | - PHPUnit_Framework_Assert::fileExists() |
|
212 | + PHPUnit_Framework_Assert::fileExists() |
|
213 | 213 | ); |
214 | 214 | |
215 | 215 | $this->assertFalse($constraint->evaluate($file, '', true)); |
@@ -220,12 +220,12 @@ discard block |
||
220 | 220 | $constraint->evaluate($file); |
221 | 221 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
222 | 222 | $this->assertEquals( |
223 | - <<<EOF |
|
223 | + <<<EOF |
|
224 | 224 | Failed asserting that file "$file" does not exist. |
225 | 225 | |
226 | 226 | EOF |
227 | - , |
|
228 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
227 | + , |
|
228 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
229 | 229 | ); |
230 | 230 | |
231 | 231 | return; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'ClassWithNonPublicAttributes.php'; |
247 | 247 | |
248 | 248 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
249 | - PHPUnit_Framework_Assert::fileExists() |
|
249 | + PHPUnit_Framework_Assert::fileExists() |
|
250 | 250 | ); |
251 | 251 | |
252 | 252 | try { |
@@ -257,8 +257,8 @@ discard block |
||
257 | 257 | Failed asserting that file "$file" does not exist. |
258 | 258 | |
259 | 259 | EOF |
260 | - , |
|
261 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
260 | + , |
|
261 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
262 | 262 | ); |
263 | 263 | |
264 | 264 | return; |
@@ -286,12 +286,12 @@ discard block |
||
286 | 286 | $constraint->evaluate(0); |
287 | 287 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
288 | 288 | $this->assertEquals( |
289 | - <<<EOF |
|
289 | + <<<EOF |
|
290 | 290 | Failed asserting that 0 is greater than 1. |
291 | 291 | |
292 | 292 | EOF |
293 | - , |
|
294 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
293 | + , |
|
294 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
295 | 295 | ); |
296 | 296 | |
297 | 297 | return; |
@@ -313,13 +313,13 @@ discard block |
||
313 | 313 | $constraint->evaluate(0, 'custom message'); |
314 | 314 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
315 | 315 | $this->assertEquals( |
316 | - <<<EOF |
|
316 | + <<<EOF |
|
317 | 317 | custom message |
318 | 318 | Failed asserting that 0 is greater than 1. |
319 | 319 | |
320 | 320 | EOF |
321 | - , |
|
322 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
321 | + , |
|
322 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
323 | 323 | ); |
324 | 324 | |
325 | 325 | return; |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | public function testConstraintNotGreaterThan() |
339 | 339 | { |
340 | 340 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
341 | - PHPUnit_Framework_Assert::greaterThan(1) |
|
341 | + PHPUnit_Framework_Assert::greaterThan(1) |
|
342 | 342 | ); |
343 | 343 | |
344 | 344 | $this->assertTrue($constraint->evaluate(1, '', true)); |
@@ -349,12 +349,12 @@ discard block |
||
349 | 349 | $constraint->evaluate(2); |
350 | 350 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
351 | 351 | $this->assertEquals( |
352 | - <<<EOF |
|
352 | + <<<EOF |
|
353 | 353 | Failed asserting that 2 is not greater than 1. |
354 | 354 | |
355 | 355 | EOF |
356 | - , |
|
357 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
356 | + , |
|
357 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
358 | 358 | ); |
359 | 359 | |
360 | 360 | return; |
@@ -373,20 +373,20 @@ discard block |
||
373 | 373 | public function testConstraintNotGreaterThan2() |
374 | 374 | { |
375 | 375 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
376 | - PHPUnit_Framework_Assert::greaterThan(1) |
|
376 | + PHPUnit_Framework_Assert::greaterThan(1) |
|
377 | 377 | ); |
378 | 378 | |
379 | 379 | try { |
380 | 380 | $constraint->evaluate(2, 'custom message'); |
381 | 381 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
382 | 382 | $this->assertEquals( |
383 | - <<<EOF |
|
383 | + <<<EOF |
|
384 | 384 | custom message |
385 | 385 | Failed asserting that 2 is not greater than 1. |
386 | 386 | |
387 | 387 | EOF |
388 | - , |
|
389 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
388 | + , |
|
389 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
390 | 390 | ); |
391 | 391 | |
392 | 392 | return; |
@@ -415,12 +415,12 @@ discard block |
||
415 | 415 | $constraint->evaluate(0); |
416 | 416 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
417 | 417 | $this->assertEquals( |
418 | - <<<EOF |
|
418 | + <<<EOF |
|
419 | 419 | Failed asserting that 0 is equal to 1 or is greater than 1. |
420 | 420 | |
421 | 421 | EOF |
422 | - , |
|
423 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
422 | + , |
|
423 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
424 | 424 | ); |
425 | 425 | |
426 | 426 | return; |
@@ -444,13 +444,13 @@ discard block |
||
444 | 444 | $constraint->evaluate(0, 'custom message'); |
445 | 445 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
446 | 446 | $this->assertEquals( |
447 | - <<<EOF |
|
447 | + <<<EOF |
|
448 | 448 | custom message |
449 | 449 | Failed asserting that 0 is equal to 1 or is greater than 1. |
450 | 450 | |
451 | 451 | EOF |
452 | - , |
|
453 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
452 | + , |
|
453 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
454 | 454 | ); |
455 | 455 | |
456 | 456 | return; |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | public function testConstraintNotGreaterThanOrEqual() |
472 | 472 | { |
473 | 473 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
474 | - PHPUnit_Framework_Assert::greaterThanOrEqual(1) |
|
474 | + PHPUnit_Framework_Assert::greaterThanOrEqual(1) |
|
475 | 475 | ); |
476 | 476 | |
477 | 477 | $this->assertFalse($constraint->evaluate(1, '', true)); |
@@ -482,12 +482,12 @@ discard block |
||
482 | 482 | $constraint->evaluate(1); |
483 | 483 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
484 | 484 | $this->assertEquals( |
485 | - <<<EOF |
|
485 | + <<<EOF |
|
486 | 486 | Failed asserting that not( 1 is equal to 1 or is greater than 1 ). |
487 | 487 | |
488 | 488 | EOF |
489 | - , |
|
490 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
489 | + , |
|
490 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
491 | 491 | ); |
492 | 492 | |
493 | 493 | return; |
@@ -508,20 +508,20 @@ discard block |
||
508 | 508 | public function testConstraintNotGreaterThanOrEqual2() |
509 | 509 | { |
510 | 510 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
511 | - PHPUnit_Framework_Assert::greaterThanOrEqual(1) |
|
511 | + PHPUnit_Framework_Assert::greaterThanOrEqual(1) |
|
512 | 512 | ); |
513 | 513 | |
514 | 514 | try { |
515 | 515 | $constraint->evaluate(1, 'custom message'); |
516 | 516 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
517 | 517 | $this->assertEquals( |
518 | - <<<EOF |
|
518 | + <<<EOF |
|
519 | 519 | custom message |
520 | 520 | Failed asserting that not( 1 is equal to 1 or is greater than 1 ). |
521 | 521 | |
522 | 522 | EOF |
523 | - , |
|
524 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
523 | + , |
|
524 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
525 | 525 | ); |
526 | 526 | |
527 | 527 | return; |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | public function testConstraintNotIsAnything() |
557 | 557 | { |
558 | 558 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
559 | - PHPUnit_Framework_Assert::anything() |
|
559 | + PHPUnit_Framework_Assert::anything() |
|
560 | 560 | ); |
561 | 561 | |
562 | 562 | $this->assertFalse($constraint->evaluate(null, '', true)); |
@@ -567,12 +567,12 @@ discard block |
||
567 | 567 | $constraint->evaluate(null); |
568 | 568 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
569 | 569 | $this->assertEquals( |
570 | - <<<EOF |
|
570 | + <<<EOF |
|
571 | 571 | Failed asserting that null is not anything. |
572 | 572 | |
573 | 573 | EOF |
574 | - , |
|
575 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
574 | + , |
|
575 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
576 | 576 | ); |
577 | 577 | |
578 | 578 | return; |
@@ -600,12 +600,12 @@ discard block |
||
600 | 600 | $constraint->evaluate(0); |
601 | 601 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
602 | 602 | $this->assertEquals( |
603 | - <<<EOF |
|
603 | + <<<EOF |
|
604 | 604 | Failed asserting that 0 matches expected 1. |
605 | 605 | |
606 | 606 | EOF |
607 | - , |
|
608 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
607 | + , |
|
608 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
609 | 609 | ); |
610 | 610 | |
611 | 611 | return; |
@@ -810,9 +810,9 @@ discard block |
||
810 | 810 | EOF |
811 | 811 | ), |
812 | 812 | array( |
813 | - new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')), |
|
814 | - new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')), |
|
815 | - <<<EOF |
|
813 | + new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/New_York')), |
|
814 | + new DateTime('2013-03-29 04:13:35', new DateTimeZone('America/Chicago')), |
|
815 | + <<<EOF |
|
816 | 816 | Failed asserting that two DateTime objects are equal. |
817 | 817 | --- Expected |
818 | 818 | +++ Actual |
@@ -885,8 +885,8 @@ discard block |
||
885 | 885 | $constraint->evaluate($actual, 'custom message'); |
886 | 886 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
887 | 887 | $this->assertEquals( |
888 | - "custom message\n$message", |
|
889 | - $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
888 | + "custom message\n$message", |
|
889 | + $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
890 | 890 | ); |
891 | 891 | |
892 | 892 | return; |
@@ -905,7 +905,7 @@ discard block |
||
905 | 905 | public function testConstraintIsNotEqual() |
906 | 906 | { |
907 | 907 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
908 | - PHPUnit_Framework_Assert::equalTo(1) |
|
908 | + PHPUnit_Framework_Assert::equalTo(1) |
|
909 | 909 | ); |
910 | 910 | |
911 | 911 | $this->assertTrue($constraint->evaluate(0, '', true)); |
@@ -917,12 +917,12 @@ discard block |
||
917 | 917 | $constraint->evaluate(1); |
918 | 918 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
919 | 919 | $this->assertEquals( |
920 | - <<<EOF |
|
920 | + <<<EOF |
|
921 | 921 | Failed asserting that 1 is not equal to 1. |
922 | 922 | |
923 | 923 | EOF |
924 | - , |
|
925 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
924 | + , |
|
925 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
926 | 926 | ); |
927 | 927 | |
928 | 928 | return; |
@@ -941,20 +941,20 @@ discard block |
||
941 | 941 | public function testConstraintIsNotEqual2() |
942 | 942 | { |
943 | 943 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
944 | - PHPUnit_Framework_Assert::equalTo(1) |
|
944 | + PHPUnit_Framework_Assert::equalTo(1) |
|
945 | 945 | ); |
946 | 946 | |
947 | 947 | try { |
948 | 948 | $constraint->evaluate(1, 'custom message'); |
949 | 949 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
950 | 950 | $this->assertEquals( |
951 | - <<<EOF |
|
951 | + <<<EOF |
|
952 | 952 | custom message |
953 | 953 | Failed asserting that 1 is not equal to 1. |
954 | 954 | |
955 | 955 | EOF |
956 | - , |
|
957 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
956 | + , |
|
957 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
958 | 958 | ); |
959 | 959 | |
960 | 960 | return; |
@@ -988,8 +988,8 @@ discard block |
||
988 | 988 | Failed asserting that two variables reference the same object. |
989 | 989 | |
990 | 990 | EOF |
991 | - , |
|
992 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
991 | + , |
|
992 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
993 | 993 | ); |
994 | 994 | |
995 | 995 | return; |
@@ -1018,8 +1018,8 @@ discard block |
||
1018 | 1018 | Failed asserting that two variables reference the same object. |
1019 | 1019 | |
1020 | 1020 | EOF |
1021 | - , |
|
1022 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1021 | + , |
|
1022 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1023 | 1023 | ); |
1024 | 1024 | |
1025 | 1025 | return; |
@@ -1050,8 +1050,8 @@ discard block |
||
1050 | 1050 | +b |
1051 | 1051 | |
1052 | 1052 | EOF |
1053 | - , |
|
1054 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1053 | + , |
|
1054 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1055 | 1055 | ); |
1056 | 1056 | |
1057 | 1057 | return; |
@@ -1073,7 +1073,7 @@ discard block |
||
1073 | 1073 | $b = new stdClass; |
1074 | 1074 | |
1075 | 1075 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1076 | - PHPUnit_Framework_Assert::identicalTo($a) |
|
1076 | + PHPUnit_Framework_Assert::identicalTo($a) |
|
1077 | 1077 | ); |
1078 | 1078 | |
1079 | 1079 | $this->assertTrue($constraint->evaluate($b, '', true)); |
@@ -1088,8 +1088,8 @@ discard block |
||
1088 | 1088 | Failed asserting that two variables don't reference the same object. |
1089 | 1089 | |
1090 | 1090 | EOF |
1091 | - , |
|
1092 | - $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
1091 | + , |
|
1092 | + $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
1093 | 1093 | ); |
1094 | 1094 | |
1095 | 1095 | return; |
@@ -1110,7 +1110,7 @@ discard block |
||
1110 | 1110 | $a = new stdClass; |
1111 | 1111 | |
1112 | 1112 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1113 | - PHPUnit_Framework_Assert::identicalTo($a) |
|
1113 | + PHPUnit_Framework_Assert::identicalTo($a) |
|
1114 | 1114 | ); |
1115 | 1115 | |
1116 | 1116 | try { |
@@ -1121,8 +1121,8 @@ discard block |
||
1121 | 1121 | Failed asserting that two variables don't reference the same object. |
1122 | 1122 | |
1123 | 1123 | EOF |
1124 | - , |
|
1125 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1124 | + , |
|
1125 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1126 | 1126 | ); |
1127 | 1127 | |
1128 | 1128 | return; |
@@ -1141,7 +1141,7 @@ discard block |
||
1141 | 1141 | public function testConstraintIsNotIdentical3() |
1142 | 1142 | { |
1143 | 1143 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1144 | - PHPUnit_Framework_Assert::identicalTo('a') |
|
1144 | + PHPUnit_Framework_Assert::identicalTo('a') |
|
1145 | 1145 | ); |
1146 | 1146 | |
1147 | 1147 | try { |
@@ -1152,8 +1152,8 @@ discard block |
||
1152 | 1152 | Failed asserting that two strings are not identical. |
1153 | 1153 | |
1154 | 1154 | EOF |
1155 | - , |
|
1156 | - $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
1155 | + , |
|
1156 | + $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
1157 | 1157 | ); |
1158 | 1158 | |
1159 | 1159 | return; |
@@ -1186,12 +1186,12 @@ discard block |
||
1186 | 1186 | $constraint->evaluate(new stdClass); |
1187 | 1187 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1188 | 1188 | $this->assertEquals( |
1189 | - <<<EOF |
|
1189 | + <<<EOF |
|
1190 | 1190 | Failed asserting that stdClass Object () is an instance of class "Exception". |
1191 | 1191 | |
1192 | 1192 | EOF |
1193 | - , |
|
1194 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1193 | + , |
|
1194 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1195 | 1195 | ); |
1196 | 1196 | |
1197 | 1197 | return; |
@@ -1217,8 +1217,8 @@ discard block |
||
1217 | 1217 | Failed asserting that stdClass Object () is an instance of class "Exception". |
1218 | 1218 | |
1219 | 1219 | EOF |
1220 | - , |
|
1221 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1220 | + , |
|
1221 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1222 | 1222 | ); |
1223 | 1223 | |
1224 | 1224 | return; |
@@ -1237,7 +1237,7 @@ discard block |
||
1237 | 1237 | public function testConstraintIsNotInstanceOf() |
1238 | 1238 | { |
1239 | 1239 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1240 | - PHPUnit_Framework_Assert::isInstanceOf('stdClass') |
|
1240 | + PHPUnit_Framework_Assert::isInstanceOf('stdClass') |
|
1241 | 1241 | ); |
1242 | 1242 | |
1243 | 1243 | $this->assertFalse($constraint->evaluate(new stdClass, '', true)); |
@@ -1249,12 +1249,12 @@ discard block |
||
1249 | 1249 | $constraint->evaluate(new stdClass); |
1250 | 1250 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1251 | 1251 | $this->assertEquals( |
1252 | - <<<EOF |
|
1252 | + <<<EOF |
|
1253 | 1253 | Failed asserting that stdClass Object () is not an instance of class "stdClass". |
1254 | 1254 | |
1255 | 1255 | EOF |
1256 | - , |
|
1257 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1256 | + , |
|
1257 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1258 | 1258 | ); |
1259 | 1259 | |
1260 | 1260 | return; |
@@ -1273,7 +1273,7 @@ discard block |
||
1273 | 1273 | public function testConstraintIsNotInstanceOf2() |
1274 | 1274 | { |
1275 | 1275 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1276 | - PHPUnit_Framework_Assert::isInstanceOf('stdClass') |
|
1276 | + PHPUnit_Framework_Assert::isInstanceOf('stdClass') |
|
1277 | 1277 | ); |
1278 | 1278 | |
1279 | 1279 | try { |
@@ -1284,8 +1284,8 @@ discard block |
||
1284 | 1284 | Failed asserting that stdClass Object () is not an instance of class "stdClass". |
1285 | 1285 | |
1286 | 1286 | EOF |
1287 | - , |
|
1288 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1287 | + , |
|
1288 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1289 | 1289 | ); |
1290 | 1290 | |
1291 | 1291 | return; |
@@ -1316,8 +1316,8 @@ discard block |
||
1316 | 1316 | Failed asserting that stdClass Object &%x () is of type "string". |
1317 | 1317 | |
1318 | 1318 | EOF |
1319 | - , |
|
1320 | - $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
1319 | + , |
|
1320 | + $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
1321 | 1321 | ); |
1322 | 1322 | |
1323 | 1323 | return; |
@@ -1343,8 +1343,8 @@ discard block |
||
1343 | 1343 | Failed asserting that stdClass Object &%x () is of type "string". |
1344 | 1344 | |
1345 | 1345 | EOF |
1346 | - , |
|
1347 | - $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
1346 | + , |
|
1347 | + $this->trimnl(PHPUnit_Framework_TestFailure::exceptionToString($e)) |
|
1348 | 1348 | ); |
1349 | 1349 | |
1350 | 1350 | return; |
@@ -1388,7 +1388,7 @@ discard block |
||
1388 | 1388 | public function testConstraintIsNotType() |
1389 | 1389 | { |
1390 | 1390 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1391 | - PHPUnit_Framework_Assert::isType('string') |
|
1391 | + PHPUnit_Framework_Assert::isType('string') |
|
1392 | 1392 | ); |
1393 | 1393 | |
1394 | 1394 | $this->assertTrue($constraint->evaluate(0, '', true)); |
@@ -1400,12 +1400,12 @@ discard block |
||
1400 | 1400 | $constraint->evaluate(''); |
1401 | 1401 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1402 | 1402 | $this->assertEquals( |
1403 | - <<<EOF |
|
1403 | + <<<EOF |
|
1404 | 1404 | Failed asserting that '' is not of type "string". |
1405 | 1405 | |
1406 | 1406 | EOF |
1407 | - , |
|
1408 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1407 | + , |
|
1408 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1409 | 1409 | ); |
1410 | 1410 | |
1411 | 1411 | return; |
@@ -1424,7 +1424,7 @@ discard block |
||
1424 | 1424 | public function testConstraintIsNotType2() |
1425 | 1425 | { |
1426 | 1426 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1427 | - PHPUnit_Framework_Assert::isType('string') |
|
1427 | + PHPUnit_Framework_Assert::isType('string') |
|
1428 | 1428 | ); |
1429 | 1429 | |
1430 | 1430 | try { |
@@ -1435,8 +1435,8 @@ discard block |
||
1435 | 1435 | Failed asserting that '' is not of type "string". |
1436 | 1436 | |
1437 | 1437 | EOF |
1438 | - , |
|
1439 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1438 | + , |
|
1439 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1440 | 1440 | ); |
1441 | 1441 | |
1442 | 1442 | return; |
@@ -1467,8 +1467,8 @@ discard block |
||
1467 | 1467 | Failed asserting that 0 is null. |
1468 | 1468 | |
1469 | 1469 | EOF |
1470 | - , |
|
1471 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1470 | + , |
|
1471 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1472 | 1472 | ); |
1473 | 1473 | |
1474 | 1474 | return; |
@@ -1494,8 +1494,8 @@ discard block |
||
1494 | 1494 | Failed asserting that 0 is null. |
1495 | 1495 | |
1496 | 1496 | EOF |
1497 | - , |
|
1498 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1497 | + , |
|
1498 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1499 | 1499 | ); |
1500 | 1500 | |
1501 | 1501 | return; |
@@ -1515,7 +1515,7 @@ discard block |
||
1515 | 1515 | public function testConstraintIsNotNull() |
1516 | 1516 | { |
1517 | 1517 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1518 | - PHPUnit_Framework_Assert::isNull() |
|
1518 | + PHPUnit_Framework_Assert::isNull() |
|
1519 | 1519 | ); |
1520 | 1520 | |
1521 | 1521 | $this->assertFalse($constraint->evaluate(null, '', true)); |
@@ -1530,8 +1530,8 @@ discard block |
||
1530 | 1530 | Failed asserting that null is not null. |
1531 | 1531 | |
1532 | 1532 | EOF |
1533 | - , |
|
1534 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1533 | + , |
|
1534 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1535 | 1535 | ); |
1536 | 1536 | |
1537 | 1537 | return; |
@@ -1550,7 +1550,7 @@ discard block |
||
1550 | 1550 | public function testConstraintIsNotNull2() |
1551 | 1551 | { |
1552 | 1552 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1553 | - PHPUnit_Framework_Assert::isNull() |
|
1553 | + PHPUnit_Framework_Assert::isNull() |
|
1554 | 1554 | ); |
1555 | 1555 | |
1556 | 1556 | try { |
@@ -1561,8 +1561,8 @@ discard block |
||
1561 | 1561 | Failed asserting that null is not null. |
1562 | 1562 | |
1563 | 1563 | EOF |
1564 | - , |
|
1565 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1564 | + , |
|
1565 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1566 | 1566 | ); |
1567 | 1567 | |
1568 | 1568 | return; |
@@ -1590,12 +1590,12 @@ discard block |
||
1590 | 1590 | $constraint->evaluate(1); |
1591 | 1591 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1592 | 1592 | $this->assertEquals( |
1593 | - <<<EOF |
|
1593 | + <<<EOF |
|
1594 | 1594 | Failed asserting that 1 is less than 1. |
1595 | 1595 | |
1596 | 1596 | EOF |
1597 | - , |
|
1598 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1597 | + , |
|
1598 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1599 | 1599 | ); |
1600 | 1600 | |
1601 | 1601 | return; |
@@ -1617,13 +1617,13 @@ discard block |
||
1617 | 1617 | $constraint->evaluate(1, 'custom message'); |
1618 | 1618 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1619 | 1619 | $this->assertEquals( |
1620 | - <<<EOF |
|
1620 | + <<<EOF |
|
1621 | 1621 | custom message |
1622 | 1622 | Failed asserting that 1 is less than 1. |
1623 | 1623 | |
1624 | 1624 | EOF |
1625 | - , |
|
1626 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1625 | + , |
|
1626 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1627 | 1627 | ); |
1628 | 1628 | |
1629 | 1629 | return; |
@@ -1642,7 +1642,7 @@ discard block |
||
1642 | 1642 | public function testConstraintNotLessThan() |
1643 | 1643 | { |
1644 | 1644 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1645 | - PHPUnit_Framework_Assert::lessThan(1) |
|
1645 | + PHPUnit_Framework_Assert::lessThan(1) |
|
1646 | 1646 | ); |
1647 | 1647 | |
1648 | 1648 | $this->assertTrue($constraint->evaluate(1, '', true)); |
@@ -1654,12 +1654,12 @@ discard block |
||
1654 | 1654 | $constraint->evaluate(0); |
1655 | 1655 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1656 | 1656 | $this->assertEquals( |
1657 | - <<<EOF |
|
1657 | + <<<EOF |
|
1658 | 1658 | Failed asserting that 0 is not less than 1. |
1659 | 1659 | |
1660 | 1660 | EOF |
1661 | - , |
|
1662 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1661 | + , |
|
1662 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1663 | 1663 | ); |
1664 | 1664 | |
1665 | 1665 | return; |
@@ -1678,20 +1678,20 @@ discard block |
||
1678 | 1678 | public function testConstraintNotLessThan2() |
1679 | 1679 | { |
1680 | 1680 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1681 | - PHPUnit_Framework_Assert::lessThan(1) |
|
1681 | + PHPUnit_Framework_Assert::lessThan(1) |
|
1682 | 1682 | ); |
1683 | 1683 | |
1684 | 1684 | try { |
1685 | 1685 | $constraint->evaluate(0, 'custom message'); |
1686 | 1686 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1687 | 1687 | $this->assertEquals( |
1688 | - <<<EOF |
|
1688 | + <<<EOF |
|
1689 | 1689 | custom message |
1690 | 1690 | Failed asserting that 0 is not less than 1. |
1691 | 1691 | |
1692 | 1692 | EOF |
1693 | - , |
|
1694 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1693 | + , |
|
1694 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1695 | 1695 | ); |
1696 | 1696 | |
1697 | 1697 | return; |
@@ -1720,12 +1720,12 @@ discard block |
||
1720 | 1720 | $constraint->evaluate(2); |
1721 | 1721 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1722 | 1722 | $this->assertEquals( |
1723 | - <<<EOF |
|
1723 | + <<<EOF |
|
1724 | 1724 | Failed asserting that 2 is equal to 1 or is less than 1. |
1725 | 1725 | |
1726 | 1726 | EOF |
1727 | - , |
|
1728 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1727 | + , |
|
1728 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1729 | 1729 | ); |
1730 | 1730 | |
1731 | 1731 | return; |
@@ -1803,13 +1803,13 @@ discard block |
||
1803 | 1803 | $constraint->evaluate(2, 'custom message'); |
1804 | 1804 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1805 | 1805 | $this->assertEquals( |
1806 | - <<<EOF |
|
1806 | + <<<EOF |
|
1807 | 1807 | custom message |
1808 | 1808 | Failed asserting that 2 is equal to 1 or is less than 1. |
1809 | 1809 | |
1810 | 1810 | EOF |
1811 | - , |
|
1812 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1811 | + , |
|
1812 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1813 | 1813 | ); |
1814 | 1814 | |
1815 | 1815 | return; |
@@ -1830,7 +1830,7 @@ discard block |
||
1830 | 1830 | public function testConstraintNotLessThanOrEqual() |
1831 | 1831 | { |
1832 | 1832 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1833 | - PHPUnit_Framework_Assert::lessThanOrEqual(1) |
|
1833 | + PHPUnit_Framework_Assert::lessThanOrEqual(1) |
|
1834 | 1834 | ); |
1835 | 1835 | |
1836 | 1836 | $this->assertTrue($constraint->evaluate(2, '', true)); |
@@ -1842,12 +1842,12 @@ discard block |
||
1842 | 1842 | $constraint->evaluate(1); |
1843 | 1843 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1844 | 1844 | $this->assertEquals( |
1845 | - <<<EOF |
|
1845 | + <<<EOF |
|
1846 | 1846 | Failed asserting that not( 1 is equal to 1 or is less than 1 ). |
1847 | 1847 | |
1848 | 1848 | EOF |
1849 | - , |
|
1850 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1849 | + , |
|
1850 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1851 | 1851 | ); |
1852 | 1852 | |
1853 | 1853 | return; |
@@ -1868,20 +1868,20 @@ discard block |
||
1868 | 1868 | public function testConstraintNotLessThanOrEqual2() |
1869 | 1869 | { |
1870 | 1870 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1871 | - PHPUnit_Framework_Assert::lessThanOrEqual(1) |
|
1871 | + PHPUnit_Framework_Assert::lessThanOrEqual(1) |
|
1872 | 1872 | ); |
1873 | 1873 | |
1874 | 1874 | try { |
1875 | 1875 | $constraint->evaluate(1, 'custom message'); |
1876 | 1876 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1877 | 1877 | $this->assertEquals( |
1878 | - <<<EOF |
|
1878 | + <<<EOF |
|
1879 | 1879 | custom message |
1880 | 1880 | Failed asserting that not( 1 is equal to 1 or is less than 1 ). |
1881 | 1881 | |
1882 | 1882 | EOF |
1883 | - , |
|
1884 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1883 | + , |
|
1884 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1885 | 1885 | ); |
1886 | 1886 | |
1887 | 1887 | return; |
@@ -1909,12 +1909,12 @@ discard block |
||
1909 | 1909 | $constraint->evaluate('stdClass'); |
1910 | 1910 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1911 | 1911 | $this->assertEquals( |
1912 | - <<<EOF |
|
1912 | + <<<EOF |
|
1913 | 1913 | Failed asserting that class "stdClass" has attribute "privateAttribute". |
1914 | 1914 | |
1915 | 1915 | EOF |
1916 | - , |
|
1917 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1916 | + , |
|
1917 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1918 | 1918 | ); |
1919 | 1919 | |
1920 | 1920 | return; |
@@ -1940,8 +1940,8 @@ discard block |
||
1940 | 1940 | Failed asserting that class "stdClass" has attribute "privateAttribute". |
1941 | 1941 | |
1942 | 1942 | EOF |
1943 | - , |
|
1944 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1943 | + , |
|
1944 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1945 | 1945 | ); |
1946 | 1946 | |
1947 | 1947 | return; |
@@ -1960,7 +1960,7 @@ discard block |
||
1960 | 1960 | public function testConstraintClassNotHasAttribute() |
1961 | 1961 | { |
1962 | 1962 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1963 | - PHPUnit_Framework_Assert::classHasAttribute('privateAttribute') |
|
1963 | + PHPUnit_Framework_Assert::classHasAttribute('privateAttribute') |
|
1964 | 1964 | ); |
1965 | 1965 | |
1966 | 1966 | $this->assertTrue($constraint->evaluate('stdClass', '', true)); |
@@ -1972,12 +1972,12 @@ discard block |
||
1972 | 1972 | $constraint->evaluate('ClassWithNonPublicAttributes'); |
1973 | 1973 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
1974 | 1974 | $this->assertEquals( |
1975 | - <<<EOF |
|
1975 | + <<<EOF |
|
1976 | 1976 | Failed asserting that class "ClassWithNonPublicAttributes" does not have attribute "privateAttribute". |
1977 | 1977 | |
1978 | 1978 | EOF |
1979 | - , |
|
1980 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1979 | + , |
|
1980 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
1981 | 1981 | ); |
1982 | 1982 | |
1983 | 1983 | return; |
@@ -1996,7 +1996,7 @@ discard block |
||
1996 | 1996 | public function testConstraintClassNotHasAttribute2() |
1997 | 1997 | { |
1998 | 1998 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
1999 | - PHPUnit_Framework_Assert::classHasAttribute('privateAttribute') |
|
1999 | + PHPUnit_Framework_Assert::classHasAttribute('privateAttribute') |
|
2000 | 2000 | ); |
2001 | 2001 | |
2002 | 2002 | try { |
@@ -2007,8 +2007,8 @@ discard block |
||
2007 | 2007 | Failed asserting that class "ClassWithNonPublicAttributes" does not have attribute "privateAttribute". |
2008 | 2008 | |
2009 | 2009 | EOF |
2010 | - , |
|
2011 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2010 | + , |
|
2011 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2012 | 2012 | ); |
2013 | 2013 | |
2014 | 2014 | return; |
@@ -2036,12 +2036,12 @@ discard block |
||
2036 | 2036 | $constraint->evaluate('stdClass'); |
2037 | 2037 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2038 | 2038 | $this->assertEquals( |
2039 | - <<<EOF |
|
2039 | + <<<EOF |
|
2040 | 2040 | Failed asserting that class "stdClass" has static attribute "privateStaticAttribute". |
2041 | 2041 | |
2042 | 2042 | EOF |
2043 | - , |
|
2044 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2043 | + , |
|
2044 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2045 | 2045 | ); |
2046 | 2046 | |
2047 | 2047 | return; |
@@ -2067,8 +2067,8 @@ discard block |
||
2067 | 2067 | Failed asserting that class "stdClass" has static attribute "foo". |
2068 | 2068 | |
2069 | 2069 | EOF |
2070 | - , |
|
2071 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2070 | + , |
|
2071 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2072 | 2072 | ); |
2073 | 2073 | |
2074 | 2074 | return; |
@@ -2087,7 +2087,7 @@ discard block |
||
2087 | 2087 | public function testConstraintClassNotHasStaticAttribute() |
2088 | 2088 | { |
2089 | 2089 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2090 | - PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute') |
|
2090 | + PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute') |
|
2091 | 2091 | ); |
2092 | 2092 | |
2093 | 2093 | $this->assertTrue($constraint->evaluate('stdClass', '', true)); |
@@ -2099,12 +2099,12 @@ discard block |
||
2099 | 2099 | $constraint->evaluate('ClassWithNonPublicAttributes'); |
2100 | 2100 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2101 | 2101 | $this->assertEquals( |
2102 | - <<<EOF |
|
2102 | + <<<EOF |
|
2103 | 2103 | Failed asserting that class "ClassWithNonPublicAttributes" does not have static attribute "privateStaticAttribute". |
2104 | 2104 | |
2105 | 2105 | EOF |
2106 | - , |
|
2107 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2106 | + , |
|
2107 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2108 | 2108 | ); |
2109 | 2109 | |
2110 | 2110 | return; |
@@ -2123,7 +2123,7 @@ discard block |
||
2123 | 2123 | public function testConstraintClassNotHasStaticAttribute2() |
2124 | 2124 | { |
2125 | 2125 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2126 | - PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute') |
|
2126 | + PHPUnit_Framework_Assert::classHasStaticAttribute('privateStaticAttribute') |
|
2127 | 2127 | ); |
2128 | 2128 | |
2129 | 2129 | try { |
@@ -2134,8 +2134,8 @@ discard block |
||
2134 | 2134 | Failed asserting that class "ClassWithNonPublicAttributes" does not have static attribute "privateStaticAttribute". |
2135 | 2135 | |
2136 | 2136 | EOF |
2137 | - , |
|
2138 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2137 | + , |
|
2138 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2139 | 2139 | ); |
2140 | 2140 | |
2141 | 2141 | return; |
@@ -2163,12 +2163,12 @@ discard block |
||
2163 | 2163 | $constraint->evaluate(new stdClass); |
2164 | 2164 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2165 | 2165 | $this->assertEquals( |
2166 | - <<<EOF |
|
2166 | + <<<EOF |
|
2167 | 2167 | Failed asserting that object of class "stdClass" has attribute "privateAttribute". |
2168 | 2168 | |
2169 | 2169 | EOF |
2170 | - , |
|
2171 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2170 | + , |
|
2171 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2172 | 2172 | ); |
2173 | 2173 | |
2174 | 2174 | return; |
@@ -2194,8 +2194,8 @@ discard block |
||
2194 | 2194 | Failed asserting that object of class "stdClass" has attribute "privateAttribute". |
2195 | 2195 | |
2196 | 2196 | EOF |
2197 | - , |
|
2198 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2197 | + , |
|
2198 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2199 | 2199 | ); |
2200 | 2200 | |
2201 | 2201 | return; |
@@ -2214,7 +2214,7 @@ discard block |
||
2214 | 2214 | public function testConstraintObjectNotHasAttribute() |
2215 | 2215 | { |
2216 | 2216 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2217 | - PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute') |
|
2217 | + PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute') |
|
2218 | 2218 | ); |
2219 | 2219 | |
2220 | 2220 | $this->assertTrue($constraint->evaluate(new stdClass, '', true)); |
@@ -2226,12 +2226,12 @@ discard block |
||
2226 | 2226 | $constraint->evaluate(new ClassWithNonPublicAttributes); |
2227 | 2227 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2228 | 2228 | $this->assertEquals( |
2229 | - <<<EOF |
|
2229 | + <<<EOF |
|
2230 | 2230 | Failed asserting that object of class "ClassWithNonPublicAttributes" does not have attribute "privateAttribute". |
2231 | 2231 | |
2232 | 2232 | EOF |
2233 | - , |
|
2234 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2233 | + , |
|
2234 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2235 | 2235 | ); |
2236 | 2236 | |
2237 | 2237 | return; |
@@ -2250,7 +2250,7 @@ discard block |
||
2250 | 2250 | public function testConstraintObjectNotHasAttribute2() |
2251 | 2251 | { |
2252 | 2252 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2253 | - PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute') |
|
2253 | + PHPUnit_Framework_Assert::objectHasAttribute('privateAttribute') |
|
2254 | 2254 | ); |
2255 | 2255 | |
2256 | 2256 | try { |
@@ -2261,8 +2261,8 @@ discard block |
||
2261 | 2261 | Failed asserting that object of class "ClassWithNonPublicAttributes" does not have attribute "privateAttribute". |
2262 | 2262 | |
2263 | 2263 | EOF |
2264 | - , |
|
2265 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2264 | + , |
|
2265 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2266 | 2266 | ); |
2267 | 2267 | |
2268 | 2268 | return; |
@@ -2290,12 +2290,12 @@ discard block |
||
2290 | 2290 | $constraint->evaluate('barbazbar'); |
2291 | 2291 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2292 | 2292 | $this->assertEquals( |
2293 | - <<<EOF |
|
2293 | + <<<EOF |
|
2294 | 2294 | Failed asserting that 'barbazbar' matches PCRE pattern "/foo/". |
2295 | 2295 | |
2296 | 2296 | EOF |
2297 | - , |
|
2298 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2297 | + , |
|
2298 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2299 | 2299 | ); |
2300 | 2300 | |
2301 | 2301 | return; |
@@ -2321,8 +2321,8 @@ discard block |
||
2321 | 2321 | Failed asserting that 'barbazbar' matches PCRE pattern "/foo/". |
2322 | 2322 | |
2323 | 2323 | EOF |
2324 | - , |
|
2325 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2324 | + , |
|
2325 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2326 | 2326 | ); |
2327 | 2327 | |
2328 | 2328 | return; |
@@ -2341,7 +2341,7 @@ discard block |
||
2341 | 2341 | public function testConstraintPCRENotMatch() |
2342 | 2342 | { |
2343 | 2343 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2344 | - PHPUnit_Framework_Assert::matchesRegularExpression('/foo/') |
|
2344 | + PHPUnit_Framework_Assert::matchesRegularExpression('/foo/') |
|
2345 | 2345 | ); |
2346 | 2346 | |
2347 | 2347 | $this->assertTrue($constraint->evaluate('barbazbar', '', true)); |
@@ -2353,12 +2353,12 @@ discard block |
||
2353 | 2353 | $constraint->evaluate('barfoobar'); |
2354 | 2354 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2355 | 2355 | $this->assertEquals( |
2356 | - <<<EOF |
|
2356 | + <<<EOF |
|
2357 | 2357 | Failed asserting that 'barfoobar' does not match PCRE pattern "/foo/". |
2358 | 2358 | |
2359 | 2359 | EOF |
2360 | - , |
|
2361 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2360 | + , |
|
2361 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2362 | 2362 | ); |
2363 | 2363 | |
2364 | 2364 | return; |
@@ -2377,7 +2377,7 @@ discard block |
||
2377 | 2377 | public function testConstraintPCRENotMatch2() |
2378 | 2378 | { |
2379 | 2379 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2380 | - PHPUnit_Framework_Assert::matchesRegularExpression('/foo/') |
|
2380 | + PHPUnit_Framework_Assert::matchesRegularExpression('/foo/') |
|
2381 | 2381 | ); |
2382 | 2382 | |
2383 | 2383 | try { |
@@ -2388,8 +2388,8 @@ discard block |
||
2388 | 2388 | Failed asserting that 'barfoobar' does not match PCRE pattern "/foo/". |
2389 | 2389 | |
2390 | 2390 | EOF |
2391 | - , |
|
2392 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2391 | + , |
|
2392 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2393 | 2393 | ); |
2394 | 2394 | |
2395 | 2395 | return; |
@@ -2501,12 +2501,12 @@ discard block |
||
2501 | 2501 | $constraint->evaluate('foo'); |
2502 | 2502 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2503 | 2503 | $this->assertEquals( |
2504 | - <<<EOF |
|
2504 | + <<<EOF |
|
2505 | 2505 | Failed asserting that 'foo' starts with "prefix". |
2506 | 2506 | |
2507 | 2507 | EOF |
2508 | - , |
|
2509 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2508 | + , |
|
2509 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2510 | 2510 | ); |
2511 | 2511 | |
2512 | 2512 | return; |
@@ -2528,12 +2528,12 @@ discard block |
||
2528 | 2528 | $constraint->evaluate('foo', 'custom message'); |
2529 | 2529 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2530 | 2530 | $this->assertEquals( |
2531 | - <<<EOF |
|
2531 | + <<<EOF |
|
2532 | 2532 | custom message\nFailed asserting that 'foo' starts with "prefix". |
2533 | 2533 | |
2534 | 2534 | EOF |
2535 | - , |
|
2536 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2535 | + , |
|
2536 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2537 | 2537 | ); |
2538 | 2538 | |
2539 | 2539 | return; |
@@ -2552,7 +2552,7 @@ discard block |
||
2552 | 2552 | public function testConstraintStringStartsNotWith() |
2553 | 2553 | { |
2554 | 2554 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2555 | - PHPUnit_Framework_Assert::stringStartsWith('prefix') |
|
2555 | + PHPUnit_Framework_Assert::stringStartsWith('prefix') |
|
2556 | 2556 | ); |
2557 | 2557 | |
2558 | 2558 | $this->assertTrue($constraint->evaluate('foo', '', true)); |
@@ -2564,12 +2564,12 @@ discard block |
||
2564 | 2564 | $constraint->evaluate('prefixfoo'); |
2565 | 2565 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2566 | 2566 | $this->assertEquals( |
2567 | - <<<EOF |
|
2567 | + <<<EOF |
|
2568 | 2568 | Failed asserting that 'prefixfoo' starts not with "prefix". |
2569 | 2569 | |
2570 | 2570 | EOF |
2571 | - , |
|
2572 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2571 | + , |
|
2572 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2573 | 2573 | ); |
2574 | 2574 | |
2575 | 2575 | return; |
@@ -2586,20 +2586,20 @@ discard block |
||
2586 | 2586 | public function testConstraintStringStartsNotWith2() |
2587 | 2587 | { |
2588 | 2588 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2589 | - PHPUnit_Framework_Assert::stringStartsWith('prefix') |
|
2589 | + PHPUnit_Framework_Assert::stringStartsWith('prefix') |
|
2590 | 2590 | ); |
2591 | 2591 | |
2592 | 2592 | try { |
2593 | 2593 | $constraint->evaluate('prefixfoo', 'custom message'); |
2594 | 2594 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2595 | 2595 | $this->assertEquals( |
2596 | - <<<EOF |
|
2596 | + <<<EOF |
|
2597 | 2597 | custom message |
2598 | 2598 | Failed asserting that 'prefixfoo' starts not with "prefix". |
2599 | 2599 | |
2600 | 2600 | EOF |
2601 | - , |
|
2602 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2601 | + , |
|
2602 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2603 | 2603 | ); |
2604 | 2604 | |
2605 | 2605 | return; |
@@ -2627,12 +2627,12 @@ discard block |
||
2627 | 2627 | $constraint->evaluate('barbazbar'); |
2628 | 2628 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2629 | 2629 | $this->assertEquals( |
2630 | - <<<EOF |
|
2630 | + <<<EOF |
|
2631 | 2631 | Failed asserting that 'barbazbar' contains "foo". |
2632 | 2632 | |
2633 | 2633 | EOF |
2634 | - , |
|
2635 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2634 | + , |
|
2635 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2636 | 2636 | ); |
2637 | 2637 | |
2638 | 2638 | return; |
@@ -2654,13 +2654,13 @@ discard block |
||
2654 | 2654 | $constraint->evaluate('barbazbar', 'custom message'); |
2655 | 2655 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2656 | 2656 | $this->assertEquals( |
2657 | - <<<EOF |
|
2657 | + <<<EOF |
|
2658 | 2658 | custom message |
2659 | 2659 | Failed asserting that 'barbazbar' contains "foo". |
2660 | 2660 | |
2661 | 2661 | EOF |
2662 | - , |
|
2663 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2662 | + , |
|
2663 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2664 | 2664 | ); |
2665 | 2665 | |
2666 | 2666 | return; |
@@ -2679,7 +2679,7 @@ discard block |
||
2679 | 2679 | public function testConstraintStringNotContains() |
2680 | 2680 | { |
2681 | 2681 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2682 | - PHPUnit_Framework_Assert::stringContains('foo') |
|
2682 | + PHPUnit_Framework_Assert::stringContains('foo') |
|
2683 | 2683 | ); |
2684 | 2684 | |
2685 | 2685 | $this->assertTrue($constraint->evaluate('barbazbar', '', true)); |
@@ -2691,12 +2691,12 @@ discard block |
||
2691 | 2691 | $constraint->evaluate('barfoobar'); |
2692 | 2692 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2693 | 2693 | $this->assertEquals( |
2694 | - <<<EOF |
|
2694 | + <<<EOF |
|
2695 | 2695 | Failed asserting that 'barfoobar' does not contain "foo". |
2696 | 2696 | |
2697 | 2697 | EOF |
2698 | - , |
|
2699 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2698 | + , |
|
2699 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2700 | 2700 | ); |
2701 | 2701 | |
2702 | 2702 | return; |
@@ -2715,20 +2715,20 @@ discard block |
||
2715 | 2715 | public function testConstraintStringNotContains2() |
2716 | 2716 | { |
2717 | 2717 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2718 | - PHPUnit_Framework_Assert::stringContains('foo') |
|
2718 | + PHPUnit_Framework_Assert::stringContains('foo') |
|
2719 | 2719 | ); |
2720 | 2720 | |
2721 | 2721 | try { |
2722 | 2722 | $constraint->evaluate('barfoobar', 'custom message'); |
2723 | 2723 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2724 | 2724 | $this->assertEquals( |
2725 | - <<<EOF |
|
2725 | + <<<EOF |
|
2726 | 2726 | custom message |
2727 | 2727 | Failed asserting that 'barfoobar' does not contain "foo". |
2728 | 2728 | |
2729 | 2729 | EOF |
2730 | - , |
|
2731 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2730 | + , |
|
2731 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2732 | 2732 | ); |
2733 | 2733 | |
2734 | 2734 | return; |
@@ -2756,12 +2756,12 @@ discard block |
||
2756 | 2756 | $constraint->evaluate('foo'); |
2757 | 2757 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2758 | 2758 | $this->assertEquals( |
2759 | - <<<EOF |
|
2759 | + <<<EOF |
|
2760 | 2760 | Failed asserting that 'foo' ends with "suffix". |
2761 | 2761 | |
2762 | 2762 | EOF |
2763 | - , |
|
2764 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2763 | + , |
|
2764 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2765 | 2765 | ); |
2766 | 2766 | |
2767 | 2767 | return; |
@@ -2783,13 +2783,13 @@ discard block |
||
2783 | 2783 | $constraint->evaluate('foo', 'custom message'); |
2784 | 2784 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2785 | 2785 | $this->assertEquals( |
2786 | - <<<EOF |
|
2786 | + <<<EOF |
|
2787 | 2787 | custom message |
2788 | 2788 | Failed asserting that 'foo' ends with "suffix". |
2789 | 2789 | |
2790 | 2790 | EOF |
2791 | - , |
|
2792 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2791 | + , |
|
2792 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2793 | 2793 | ); |
2794 | 2794 | |
2795 | 2795 | return; |
@@ -2808,7 +2808,7 @@ discard block |
||
2808 | 2808 | public function testConstraintStringEndsNotWith() |
2809 | 2809 | { |
2810 | 2810 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2811 | - PHPUnit_Framework_Assert::stringEndsWith('suffix') |
|
2811 | + PHPUnit_Framework_Assert::stringEndsWith('suffix') |
|
2812 | 2812 | ); |
2813 | 2813 | |
2814 | 2814 | $this->assertTrue($constraint->evaluate('foo', '', true)); |
@@ -2820,12 +2820,12 @@ discard block |
||
2820 | 2820 | $constraint->evaluate('foosuffix'); |
2821 | 2821 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2822 | 2822 | $this->assertEquals( |
2823 | - <<<EOF |
|
2823 | + <<<EOF |
|
2824 | 2824 | Failed asserting that 'foosuffix' ends not with "suffix". |
2825 | 2825 | |
2826 | 2826 | EOF |
2827 | - , |
|
2828 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2827 | + , |
|
2828 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2829 | 2829 | ); |
2830 | 2830 | |
2831 | 2831 | return; |
@@ -2842,20 +2842,20 @@ discard block |
||
2842 | 2842 | public function testConstraintStringEndsNotWith2() |
2843 | 2843 | { |
2844 | 2844 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2845 | - PHPUnit_Framework_Assert::stringEndsWith('suffix') |
|
2845 | + PHPUnit_Framework_Assert::stringEndsWith('suffix') |
|
2846 | 2846 | ); |
2847 | 2847 | |
2848 | 2848 | try { |
2849 | 2849 | $constraint->evaluate('foosuffix', 'custom message'); |
2850 | 2850 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2851 | 2851 | $this->assertEquals( |
2852 | - <<<EOF |
|
2852 | + <<<EOF |
|
2853 | 2853 | custom message |
2854 | 2854 | Failed asserting that 'foosuffix' ends not with "suffix". |
2855 | 2855 | |
2856 | 2856 | EOF |
2857 | - , |
|
2858 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2857 | + , |
|
2858 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2859 | 2859 | ); |
2860 | 2860 | |
2861 | 2861 | return; |
@@ -2900,12 +2900,12 @@ discard block |
||
2900 | 2900 | $constraint->evaluate(array('bar')); |
2901 | 2901 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2902 | 2902 | $this->assertEquals( |
2903 | - <<<EOF |
|
2903 | + <<<EOF |
|
2904 | 2904 | Failed asserting that an array contains 'foo'. |
2905 | 2905 | |
2906 | 2906 | EOF |
2907 | - , |
|
2908 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2907 | + , |
|
2908 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2909 | 2909 | ); |
2910 | 2910 | |
2911 | 2911 | return; |
@@ -2926,13 +2926,13 @@ discard block |
||
2926 | 2926 | $constraint->evaluate(array('bar'), 'custom message'); |
2927 | 2927 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2928 | 2928 | $this->assertEquals( |
2929 | - <<<EOF |
|
2929 | + <<<EOF |
|
2930 | 2930 | custom message |
2931 | 2931 | Failed asserting that an array contains 'foo'. |
2932 | 2932 | |
2933 | 2933 | EOF |
2934 | - , |
|
2935 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2934 | + , |
|
2935 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2936 | 2936 | ); |
2937 | 2937 | |
2938 | 2938 | return; |
@@ -2950,7 +2950,7 @@ discard block |
||
2950 | 2950 | public function testConstraintArrayNotContains() |
2951 | 2951 | { |
2952 | 2952 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2953 | - new PHPUnit_Framework_Constraint_TraversableContains('foo') |
|
2953 | + new PHPUnit_Framework_Constraint_TraversableContains('foo') |
|
2954 | 2954 | ); |
2955 | 2955 | |
2956 | 2956 | $this->assertTrue($constraint->evaluate(array('bar'), '', true)); |
@@ -2962,12 +2962,12 @@ discard block |
||
2962 | 2962 | $constraint->evaluate(array('foo')); |
2963 | 2963 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2964 | 2964 | $this->assertEquals( |
2965 | - <<<EOF |
|
2965 | + <<<EOF |
|
2966 | 2966 | Failed asserting that an array does not contain 'foo'. |
2967 | 2967 | |
2968 | 2968 | EOF |
2969 | - , |
|
2970 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2969 | + , |
|
2970 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
2971 | 2971 | ); |
2972 | 2972 | |
2973 | 2973 | return; |
@@ -2985,20 +2985,20 @@ discard block |
||
2985 | 2985 | public function testConstraintArrayNotContains2() |
2986 | 2986 | { |
2987 | 2987 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
2988 | - new PHPUnit_Framework_Constraint_TraversableContains('foo') |
|
2988 | + new PHPUnit_Framework_Constraint_TraversableContains('foo') |
|
2989 | 2989 | ); |
2990 | 2990 | |
2991 | 2991 | try { |
2992 | 2992 | $constraint->evaluate(array('foo'), 'custom message'); |
2993 | 2993 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
2994 | 2994 | $this->assertEquals( |
2995 | - <<<EOF |
|
2995 | + <<<EOF |
|
2996 | 2996 | custom message |
2997 | 2997 | Failed asserting that an array does not contain 'foo'. |
2998 | 2998 | |
2999 | 2999 | EOF |
3000 | - , |
|
3001 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3000 | + , |
|
3001 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3002 | 3002 | ); |
3003 | 3003 | |
3004 | 3004 | return; |
@@ -3028,12 +3028,12 @@ discard block |
||
3028 | 3028 | $constraint->evaluate(new SplObjectStorage); |
3029 | 3029 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3030 | 3030 | $this->assertStringMatchesFormat( |
3031 | - <<<EOF |
|
3031 | + <<<EOF |
|
3032 | 3032 | Failed asserting that a traversable contains stdClass Object &%x (). |
3033 | 3033 | |
3034 | 3034 | EOF |
3035 | - , |
|
3036 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3035 | + , |
|
3036 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3037 | 3037 | ); |
3038 | 3038 | |
3039 | 3039 | return; |
@@ -3055,13 +3055,13 @@ discard block |
||
3055 | 3055 | $constraint->evaluate(new SplObjectStorage, 'custom message'); |
3056 | 3056 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3057 | 3057 | $this->assertStringMatchesFormat( |
3058 | - <<<EOF |
|
3058 | + <<<EOF |
|
3059 | 3059 | custom message |
3060 | 3060 | Failed asserting that a traversable contains stdClass Object &%x (). |
3061 | 3061 | |
3062 | 3062 | EOF |
3063 | - , |
|
3064 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3063 | + , |
|
3064 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3065 | 3065 | ); |
3066 | 3066 | |
3067 | 3067 | return; |
@@ -3092,12 +3092,12 @@ discard block |
||
3092 | 3092 | $constraint->evaluate($object); |
3093 | 3093 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3094 | 3094 | $this->assertEquals( |
3095 | - <<<EOF |
|
3095 | + <<<EOF |
|
3096 | 3096 | Failed asserting that attribute "foo" is equal to 2. |
3097 | 3097 | |
3098 | 3098 | EOF |
3099 | - , |
|
3100 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3099 | + , |
|
3100 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3101 | 3101 | ); |
3102 | 3102 | |
3103 | 3103 | return; |
@@ -3120,12 +3120,12 @@ discard block |
||
3120 | 3120 | $constraint->evaluate($object, 'custom message'); |
3121 | 3121 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3122 | 3122 | $this->assertEquals( |
3123 | - <<<EOF |
|
3123 | + <<<EOF |
|
3124 | 3124 | custom message\nFailed asserting that attribute "foo" is equal to 2. |
3125 | 3125 | |
3126 | 3126 | EOF |
3127 | - , |
|
3128 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3127 | + , |
|
3128 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3129 | 3129 | ); |
3130 | 3130 | |
3131 | 3131 | return; |
@@ -3145,7 +3145,7 @@ discard block |
||
3145 | 3145 | { |
3146 | 3146 | $object = new ClassWithNonPublicAttributes; |
3147 | 3147 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
3148 | - PHPUnit_Framework_Assert::attributeEqualTo('foo', 2) |
|
3148 | + PHPUnit_Framework_Assert::attributeEqualTo('foo', 2) |
|
3149 | 3149 | ); |
3150 | 3150 | |
3151 | 3151 | $this->assertTrue($constraint->evaluate($object, '', true)); |
@@ -3153,7 +3153,7 @@ discard block |
||
3153 | 3153 | $this->assertEquals(1, count($constraint)); |
3154 | 3154 | |
3155 | 3155 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
3156 | - PHPUnit_Framework_Assert::attributeEqualTo('foo', 1) |
|
3156 | + PHPUnit_Framework_Assert::attributeEqualTo('foo', 1) |
|
3157 | 3157 | ); |
3158 | 3158 | |
3159 | 3159 | $this->assertFalse($constraint->evaluate($object, '', true)); |
@@ -3162,12 +3162,12 @@ discard block |
||
3162 | 3162 | $constraint->evaluate($object); |
3163 | 3163 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3164 | 3164 | $this->assertEquals( |
3165 | - <<<EOF |
|
3165 | + <<<EOF |
|
3166 | 3166 | Failed asserting that attribute "foo" is not equal to 1. |
3167 | 3167 | |
3168 | 3168 | EOF |
3169 | - , |
|
3170 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3169 | + , |
|
3170 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3171 | 3171 | ); |
3172 | 3172 | |
3173 | 3173 | return; |
@@ -3187,19 +3187,19 @@ discard block |
||
3187 | 3187 | { |
3188 | 3188 | $object = new ClassWithNonPublicAttributes; |
3189 | 3189 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
3190 | - PHPUnit_Framework_Assert::attributeEqualTo('foo', 1) |
|
3190 | + PHPUnit_Framework_Assert::attributeEqualTo('foo', 1) |
|
3191 | 3191 | ); |
3192 | 3192 | |
3193 | 3193 | try { |
3194 | 3194 | $constraint->evaluate($object, 'custom message'); |
3195 | 3195 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3196 | 3196 | $this->assertEquals( |
3197 | - <<<EOF |
|
3197 | + <<<EOF |
|
3198 | 3198 | custom message\nFailed asserting that attribute "foo" is not equal to 1. |
3199 | 3199 | |
3200 | 3200 | EOF |
3201 | - , |
|
3202 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3201 | + , |
|
3202 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3203 | 3203 | ); |
3204 | 3204 | |
3205 | 3205 | return; |
@@ -3228,12 +3228,12 @@ discard block |
||
3228 | 3228 | $constraint->evaluate(array('foo')); |
3229 | 3229 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3230 | 3230 | $this->assertEquals( |
3231 | - <<<EOF |
|
3231 | + <<<EOF |
|
3232 | 3232 | Failed asserting that an array is empty. |
3233 | 3233 | |
3234 | 3234 | EOF |
3235 | - , |
|
3236 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3235 | + , |
|
3236 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3237 | 3237 | ); |
3238 | 3238 | |
3239 | 3239 | return; |
@@ -3254,12 +3254,12 @@ discard block |
||
3254 | 3254 | $constraint->evaluate(array('foo'), 'custom message'); |
3255 | 3255 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3256 | 3256 | $this->assertEquals( |
3257 | - <<<EOF |
|
3257 | + <<<EOF |
|
3258 | 3258 | custom message\nFailed asserting that an array is empty. |
3259 | 3259 | |
3260 | 3260 | EOF |
3261 | - , |
|
3262 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3261 | + , |
|
3262 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3263 | 3263 | ); |
3264 | 3264 | |
3265 | 3265 | return; |
@@ -3313,12 +3313,12 @@ discard block |
||
3313 | 3313 | $constraint->evaluate(array(1, 2)); |
3314 | 3314 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3315 | 3315 | $this->assertEquals( |
3316 | - <<<EOF |
|
3316 | + <<<EOF |
|
3317 | 3317 | Failed asserting that actual size 2 matches expected size 5. |
3318 | 3318 | |
3319 | 3319 | EOF |
3320 | - , |
|
3321 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3320 | + , |
|
3321 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3322 | 3322 | ); |
3323 | 3323 | |
3324 | 3324 | return; |
@@ -3336,19 +3336,19 @@ discard block |
||
3336 | 3336 | public function testConstraintNotCountFailing() |
3337 | 3337 | { |
3338 | 3338 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
3339 | - new PHPUnit_Framework_Constraint_Count(2) |
|
3339 | + new PHPUnit_Framework_Constraint_Count(2) |
|
3340 | 3340 | ); |
3341 | 3341 | |
3342 | 3342 | try { |
3343 | 3343 | $constraint->evaluate(array(1, 2)); |
3344 | 3344 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3345 | 3345 | $this->assertEquals( |
3346 | - <<<EOF |
|
3346 | + <<<EOF |
|
3347 | 3347 | Failed asserting that actual size 2 does not match expected size 2. |
3348 | 3348 | |
3349 | 3349 | EOF |
3350 | - , |
|
3351 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3350 | + , |
|
3351 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3352 | 3352 | ); |
3353 | 3353 | |
3354 | 3354 | return; |
@@ -3402,12 +3402,12 @@ discard block |
||
3402 | 3402 | $constraint->evaluate(array(1, 2)); |
3403 | 3403 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3404 | 3404 | $this->assertEquals( |
3405 | - <<<EOF |
|
3405 | + <<<EOF |
|
3406 | 3406 | Failed asserting that actual size 2 matches expected size 5. |
3407 | 3407 | |
3408 | 3408 | EOF |
3409 | - , |
|
3410 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3409 | + , |
|
3410 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3411 | 3411 | ); |
3412 | 3412 | |
3413 | 3413 | return; |
@@ -3425,19 +3425,19 @@ discard block |
||
3425 | 3425 | public function testConstraintNotSameSizeFailing() |
3426 | 3426 | { |
3427 | 3427 | $constraint = PHPUnit_Framework_Assert::logicalNot( |
3428 | - new PHPUnit_Framework_Constraint_SameSize(array(1, 2)) |
|
3428 | + new PHPUnit_Framework_Constraint_SameSize(array(1, 2)) |
|
3429 | 3429 | ); |
3430 | 3430 | |
3431 | 3431 | try { |
3432 | 3432 | $constraint->evaluate(array(3, 4)); |
3433 | 3433 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3434 | 3434 | $this->assertEquals( |
3435 | - <<<EOF |
|
3435 | + <<<EOF |
|
3436 | 3436 | Failed asserting that actual size 2 does not match expected size 2. |
3437 | 3437 | |
3438 | 3438 | EOF |
3439 | - , |
|
3440 | - PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3439 | + , |
|
3440 | + PHPUnit_Framework_TestFailure::exceptionToString($e) |
|
3441 | 3441 | ); |
3442 | 3442 | |
3443 | 3443 | return; |
@@ -3460,7 +3460,7 @@ discard block |
||
3460 | 3460 | $constraint->evaluate($exception); |
3461 | 3461 | } catch (PHPUnit_Framework_ExpectationFailedException $e) { |
3462 | 3462 | $this->assertEquals( |
3463 | - <<<EOF |
|
3463 | + <<<EOF |
|
3464 | 3464 | Failed asserting that exception of type "DummyException" matches expected exception "FoobarException". Message was: "Test" at |
3465 | 3465 | $stackTrace. |
3466 | 3466 |
@@ -1739,11 +1739,11 @@ discard block |
||
1739 | 1739 | */ |
1740 | 1740 | public function testConstraintCallback() |
1741 | 1741 | { |
1742 | - $closureReflect = function ($parameter) { |
|
1742 | + $closureReflect = function($parameter) { |
|
1743 | 1743 | return $parameter; |
1744 | 1744 | }; |
1745 | 1745 | |
1746 | - $closureWithoutParameter = function () { |
|
1746 | + $closureWithoutParameter = function() { |
|
1747 | 1747 | return true; |
1748 | 1748 | }; |
1749 | 1749 | |
@@ -1756,7 +1756,7 @@ discard block |
||
1756 | 1756 | |
1757 | 1757 | $callback = array($this, 'callbackReturningTrue'); |
1758 | 1758 | $constraint = PHPUnit_Framework_Assert::callback($callback); |
1759 | - $this->assertTrue($constraint->evaluate(false, '', true)); |
|
1759 | + $this->assertTrue($constraint->evaluate(false, '', true)); |
|
1760 | 1760 | |
1761 | 1761 | $callback = array('Framework_ConstraintTest', 'staticCallbackReturningTrue'); |
1762 | 1762 | $constraint = PHPUnit_Framework_Assert::callback($callback); |
@@ -1772,7 +1772,7 @@ discard block |
||
1772 | 1772 | */ |
1773 | 1773 | public function testConstraintCallbackFailure() |
1774 | 1774 | { |
1775 | - $constraint = PHPUnit_Framework_Assert::callback(function () { |
|
1775 | + $constraint = PHPUnit_Framework_Assert::callback(function() { |
|
1776 | 1776 | return false; |
1777 | 1777 | }); |
1778 | 1778 | $constraint->evaluate('This fails'); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @group foo |
|
4 | - */ |
|
3 | + * @group foo |
|
4 | + */ |
|
5 | 5 | class OneTest extends PHPUnit_Framework_TestCase |
6 | 6 | { |
7 | 7 | public function testSomething() |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @group bar |
|
4 | - */ |
|
3 | + * @group bar |
|
4 | + */ |
|
5 | 5 | class TwoTest extends PHPUnit_Framework_TestCase |
6 | 6 | { |
7 | 7 | public function testSomething() |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @runTestsInSeparateProcesses |
|
4 | - * @preserveGlobalState enabled |
|
5 | - */ |
|
3 | + * @runTestsInSeparateProcesses |
|
4 | + * @preserveGlobalState enabled |
|
5 | + */ |
|
6 | 6 | class Issue1335Test extends PHPUnit_Framework_TestCase |
7 | 7 | { |
8 | 8 | public function testGlobalString() |
@@ -12,8 +12,8 @@ |
||
12 | 12 | public function dataProvider() |
13 | 13 | { |
14 | 14 | return array( |
15 | - 'c:\\'=> array(true), |
|
16 | - 0.9 => array(true) |
|
15 | + 'c:\\'=> array(true), |
|
16 | + 0.9 => array(true) |
|
17 | 17 | ); |
18 | 18 | } |
19 | 19 | } |