Passed
Push — main ( 435c54...defc6e )
by Anatoly
04:16 queued 22s
created
tests/HydratorTest.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $this->expectException(Exception\InvalidObjectException::class);
25 25
         $this->expectExceptionMessage('The ' . Hydrator::class . '::hydrate() method ' .
26
-                                      'expects an object or name of an existing class.');
26
+                                        'expects an object or name of an existing class.');
27 27
 
28 28
         (new Hydrator)->hydrate('Undefined', []);
29 29
     }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $this->expectException(Exception\InvalidObjectException::class);
34 34
         $this->expectExceptionMessage('The ' . Fixtures\UninitializableObject::class . ' object ' .
35
-                                      'cannot be hydrated because its constructor has required parameters.');
35
+                                        'cannot be hydrated because its constructor has required parameters.');
36 36
 
37 37
         (new Hydrator)->hydrate(Fixtures\UninitializableObject::class, []);
38 38
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $this->expectException(InvalidArgumentException::class);
43 43
         $this->expectExceptionMessage('The ' . Hydrator::class . '::hydrate(data) parameter ' .
44
-                                      'expects an associative array or object.');
44
+                                        'expects an associative array or object.');
45 45
 
46 46
         (new Hydrator)->hydrate(Fixtures\ObjectWithString::class, null);
47 47
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $this->expectException(Exception\UntypedPropertyException::class);
67 67
         $this->expectExceptionMessage('The ObjectWithUntypedProperty.value property ' .
68
-                                      'is not typed.');
68
+                                        'is not typed.');
69 69
 
70 70
         (new Hydrator)->hydrate(Fixtures\ObjectWithUntypedProperty::class, []);
71 71
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $this->expectException(Exception\UnsupportedPropertyTypeException::class);
80 80
         $this->expectExceptionMessage('The ObjectWithIntOrFloat.value property ' .
81
-                                      'contains an union type that is not supported.');
81
+                                        'contains an union type that is not supported.');
82 82
 
83 83
         (new Hydrator)->hydrate(Fixtures\ObjectWithIntOrFloat::class, []);
84 84
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $this->expectException(Exception\MissingRequiredValueException::class);
107 107
         $this->expectExceptionMessage('The ObjectWithAnnotatedAlias.value property ' .
108
-                                      'is required.');
108
+                                        'is required.');
109 109
 
110 110
         (new Hydrator)
111 111
             ->useAnnotations()
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     {
118 118
         $this->expectException(Exception\MissingRequiredValueException::class);
119 119
         $this->expectExceptionMessage('The ObjectWithAnnotatedAlias.value property ' .
120
-                                      'is required.');
120
+                                        'is required.');
121 121
 
122 122
         (new Hydrator)->hydrate(Fixtures\ObjectWithAnnotatedAlias::class, ['non-normalized-value' => 'foo']);
123 123
     }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
         $this->expectException(Exception\MissingRequiredValueException::class);
154 154
         $this->expectExceptionMessage('The ObjectWithAttributedAlias.value property ' .
155
-                                      'is required.');
155
+                                        'is required.');
156 156
 
157 157
         (new Hydrator)
158 158
             ->aliasSupport(false)
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $this->expectException(Exception\MissingRequiredValueException::class);
165 165
         $this->expectExceptionMessage('The ObjectWithString.value property ' .
166
-                                      'is required.');
166
+                                        'is required.');
167 167
 
168 168
         (new Hydrator)->hydrate(Fixtures\ObjectWithString::class, []);
169 169
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     {
173 173
         $this->expectException(Exception\UnsupportedPropertyTypeException::class);
174 174
         $this->expectExceptionMessage('The ObjectWithUnsupportedType.value property ' .
175
-                                      'contains an unsupported type iterable.');
175
+                                        'contains an unsupported type iterable.');
176 176
 
177 177
         (new Hydrator)->hydrate(Fixtures\ObjectWithUnsupportedType::class, ['value' => false]);
178 178
     }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     {
228 228
         $this->expectException(Exception\InvalidValueException::class);
229 229
         $this->expectExceptionMessage('The ObjectWithString.value property ' .
230
-                                      'cannot accept null.');
230
+                                        'cannot accept null.');
231 231
 
232 232
         (new Hydrator)->hydrate(Fixtures\ObjectWithString::class, ['value' => null]);
233 233
     }
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
     {
408 408
         $this->expectException(Exception\InvalidValueException::class);
409 409
         $this->expectExceptionMessage('The ObjectWithDateTime.value property ' .
410
-                                      'expects a valid date-time string or timestamp.');
410
+                                        'expects a valid date-time string or timestamp.');
411 411
 
412 412
         (new Hydrator)->hydrate(Fixtures\ObjectWithDateTime::class, ['value' => 'foo']);
413 413
     }
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     {
417 417
         $this->expectException(Exception\InvalidValueException::class);
418 418
         $this->expectExceptionMessage('The ObjectWithDateTimeImmutable.value property ' .
419
-                                      'expects a valid date-time string or timestamp.');
419
+                                        'expects a valid date-time string or timestamp.');
420 420
 
421 421
         (new Hydrator)->hydrate(Fixtures\ObjectWithDateTimeImmutable::class, ['value' => 'foo']);
422 422
     }
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     {
433 433
         $this->expectException(Exception\InvalidValueException::class);
434 434
         $this->expectExceptionMessage('The ObjectWithDateInterval.value property ' .
435
-                                      'expects a string.');
435
+                                        'expects a string.');
436 436
 
437 437
         (new Hydrator)->hydrate(Fixtures\ObjectWithDateInterval::class, ['value' => 42]);
438 438
     }
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
     {
442 442
         $this->expectException(Exception\InvalidValueException::class);
443 443
         $this->expectExceptionMessage('The ObjectWithDateInterval.value property ' .
444
-                                      'expects a valid date-interval string based on ISO 8601.');
444
+                                        'expects a valid date-interval string based on ISO 8601.');
445 445
 
446 446
         (new Hydrator)->hydrate(Fixtures\ObjectWithDateInterval::class, ['value' => 'foo']);
447 447
     }
@@ -472,8 +472,8 @@  discard block
 block discarded – undo
472 472
     {
473 473
         $this->expectException(Exception\InvalidValueException::class);
474 474
         $this->expectExceptionMessage('The ObjectWithCustomEnum.value property ' .
475
-                                      'expects one of the following values: ' .
476
-                                      \implode(', ', Fixtures\CustomEnum::values()) . '.');
475
+                                        'expects one of the following values: ' .
476
+                                        \implode(', ', Fixtures\CustomEnum::values()) . '.');
477 477
 
478 478
         (new Hydrator)->hydrate(Fixtures\ObjectWithCustomEnum::class, ['value' => 'unknown']);
479 479
     }
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
 
514 514
         $this->expectException(Exception\InvalidValueException::class);
515 515
         $this->expectExceptionMessage('The ObjectWithStringableEnum.value property ' .
516
-                                      'expects the following type: string.');
516
+                                        'expects the following type: string.');
517 517
 
518 518
         (new Hydrator)->hydrate(Fixtures\ObjectWithStringableEnum::class, ['value' => 42]);
519 519
     }
@@ -526,8 +526,8 @@  discard block
 block discarded – undo
526 526
 
527 527
         $this->expectException(Exception\InvalidValueException::class);
528 528
         $this->expectExceptionMessage('The ObjectWithStringableEnum.value property ' .
529
-                                      'expects one of the following values: ' .
530
-                                      \implode(', ', Fixtures\StringableEnum::values()) . '.');
529
+                                        'expects one of the following values: ' .
530
+                                        \implode(', ', Fixtures\StringableEnum::values()) . '.');
531 531
 
532 532
         (new Hydrator)->hydrate(Fixtures\ObjectWithStringableEnum::class, ['value' => 'foo']);
533 533
     }
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
 
573 573
         $this->expectException(Exception\InvalidValueException::class);
574 574
         $this->expectExceptionMessage('The ObjectWithNumerableEnum.value property ' .
575
-                                      'expects the following type: int.');
575
+                                        'expects the following type: int.');
576 576
 
577 577
         (new Hydrator)->hydrate(Fixtures\ObjectWithNumerableEnum::class, ['value' => 'foo']);
578 578
     }
@@ -585,8 +585,8 @@  discard block
 block discarded – undo
585 585
 
586 586
         $this->expectException(Exception\InvalidValueException::class);
587 587
         $this->expectExceptionMessage('The ObjectWithNumerableEnum.value property ' .
588
-                                      'expects one of the following values: ' .
589
-                                      \implode(', ', Fixtures\NumerableEnum::values()) . '.');
588
+                                        'expects one of the following values: ' .
589
+                                        \implode(', ', Fixtures\NumerableEnum::values()) . '.');
590 590
 
591 591
         (new Hydrator)->hydrate(Fixtures\ObjectWithNumerableEnum::class, ['value' => 42]);
592 592
     }
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
     {
610 610
         $this->expectException(Exception\InvalidValueException::class);
611 611
         $this->expectExceptionMessage('The ObjectWithAssociation.value property ' .
612
-                                      'expects an associative array or object.');
612
+                                        'expects an associative array or object.');
613 613
 
614 614
         (new Hydrator)->hydrate(Fixtures\ObjectWithAssociation::class, ['value' => 'foo']);
615 615
     }
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
     {
647 647
         $this->expectException(Exception\InvalidValueException::class);
648 648
         $this->expectExceptionMessage('The ObjectWithAssociations.value property ' .
649
-                                      'expects an associative array or object.');
649
+                                        'expects an associative array or object.');
650 650
 
651 651
         (new Hydrator)->hydrate(Fixtures\ObjectWithAssociations::class, ['value' => 'foo']);
652 652
     }
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
     {
656 656
         $this->expectException(Exception\InvalidValueException::class);
657 657
         $this->expectExceptionMessage('The ObjectWithAssociations.value[0] property ' .
658
-                                      'expects an associative array or object.');
658
+                                        'expects an associative array or object.');
659 659
 
660 660
         (new Hydrator)->hydrate(Fixtures\ObjectWithAssociations::class, ['value' => ['foo']]);
661 661
     }
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function testInvalidObject() : void
23 23
     {
24 24
         $this->expectException(Exception\InvalidObjectException::class);
25
-        $this->expectExceptionMessage('The ' . Hydrator::class . '::hydrate() method ' .
25
+        $this->expectExceptionMessage('The '.Hydrator::class.'::hydrate() method '.
26 26
                                       'expects an object or name of an existing class.');
27 27
 
28 28
         (new Hydrator)->hydrate('Undefined', []);
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function testUninitializableObject() : void
32 32
     {
33 33
         $this->expectException(Exception\InvalidObjectException::class);
34
-        $this->expectExceptionMessage('The ' . Fixtures\UninitializableObject::class . ' object ' .
34
+        $this->expectExceptionMessage('The '.Fixtures\UninitializableObject::class.' object '.
35 35
                                       'cannot be hydrated because its constructor has required parameters.');
36 36
 
37 37
         (new Hydrator)->hydrate(Fixtures\UninitializableObject::class, []);
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function testInvalidData() : void
41 41
     {
42 42
         $this->expectException(InvalidArgumentException::class);
43
-        $this->expectExceptionMessage('The ' . Hydrator::class . '::hydrate(data) parameter ' .
43
+        $this->expectExceptionMessage('The '.Hydrator::class.'::hydrate(data) parameter '.
44 44
                                       'expects an associative array or object.');
45 45
 
46 46
         (new Hydrator)->hydrate(Fixtures\ObjectWithString::class, null);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function testUntypedProperty() : void
65 65
     {
66 66
         $this->expectException(Exception\UntypedPropertyException::class);
67
-        $this->expectExceptionMessage('The ObjectWithUntypedProperty.value property ' .
67
+        $this->expectExceptionMessage('The ObjectWithUntypedProperty.value property '.
68 68
                                       'is not typed.');
69 69
 
70 70
         (new Hydrator)->hydrate(Fixtures\ObjectWithUntypedProperty::class, []);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         }
78 78
 
79 79
         $this->expectException(Exception\UnsupportedPropertyTypeException::class);
80
-        $this->expectExceptionMessage('The ObjectWithIntOrFloat.value property ' .
80
+        $this->expectExceptionMessage('The ObjectWithIntOrFloat.value property '.
81 81
                                       'contains an union type that is not supported.');
82 82
 
83 83
         (new Hydrator)->hydrate(Fixtures\ObjectWithIntOrFloat::class, []);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     public function testHydrateAnnotatedPropertyWhenDisabledAliasSupport() : void
105 105
     {
106 106
         $this->expectException(Exception\MissingRequiredValueException::class);
107
-        $this->expectExceptionMessage('The ObjectWithAnnotatedAlias.value property ' .
107
+        $this->expectExceptionMessage('The ObjectWithAnnotatedAlias.value property '.
108 108
                                       'is required.');
109 109
 
110 110
         (new Hydrator)
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     public function testHydrateAnnotatedPropertyWhenDisabledAnnotations() : void
117 117
     {
118 118
         $this->expectException(Exception\MissingRequiredValueException::class);
119
-        $this->expectExceptionMessage('The ObjectWithAnnotatedAlias.value property ' .
119
+        $this->expectExceptionMessage('The ObjectWithAnnotatedAlias.value property '.
120 120
                                       'is required.');
121 121
 
122 122
         (new Hydrator)->hydrate(Fixtures\ObjectWithAnnotatedAlias::class, ['non-normalized-value' => 'foo']);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         }
152 152
 
153 153
         $this->expectException(Exception\MissingRequiredValueException::class);
154
-        $this->expectExceptionMessage('The ObjectWithAttributedAlias.value property ' .
154
+        $this->expectExceptionMessage('The ObjectWithAttributedAlias.value property '.
155 155
                                       'is required.');
156 156
 
157 157
         (new Hydrator)
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     public function testRequiredProperty() : void
163 163
     {
164 164
         $this->expectException(Exception\MissingRequiredValueException::class);
165
-        $this->expectExceptionMessage('The ObjectWithString.value property ' .
165
+        $this->expectExceptionMessage('The ObjectWithString.value property '.
166 166
                                       'is required.');
167 167
 
168 168
         (new Hydrator)->hydrate(Fixtures\ObjectWithString::class, []);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     public function testUnsupportedPropertyType() : void
172 172
     {
173 173
         $this->expectException(Exception\UnsupportedPropertyTypeException::class);
174
-        $this->expectExceptionMessage('The ObjectWithUnsupportedType.value property ' .
174
+        $this->expectExceptionMessage('The ObjectWithUnsupportedType.value property '.
175 175
                                       'contains an unsupported type iterable.');
176 176
 
177 177
         (new Hydrator)->hydrate(Fixtures\ObjectWithUnsupportedType::class, ['value' => false]);
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     public function testHydrateUnnullablePropertyWithNull() : void
227 227
     {
228 228
         $this->expectException(Exception\InvalidValueException::class);
229
-        $this->expectExceptionMessage('The ObjectWithString.value property ' .
229
+        $this->expectExceptionMessage('The ObjectWithString.value property '.
230 230
                                       'cannot accept null.');
231 231
 
232 232
         (new Hydrator)->hydrate(Fixtures\ObjectWithString::class, ['value' => null]);
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
     public function testHydrateDateTimePropertyWithInvalidValue() : void
407 407
     {
408 408
         $this->expectException(Exception\InvalidValueException::class);
409
-        $this->expectExceptionMessage('The ObjectWithDateTime.value property ' .
409
+        $this->expectExceptionMessage('The ObjectWithDateTime.value property '.
410 410
                                       'expects a valid date-time string or timestamp.');
411 411
 
412 412
         (new Hydrator)->hydrate(Fixtures\ObjectWithDateTime::class, ['value' => 'foo']);
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
     public function testHydrateDateTimeImmutablePropertyWithInvalidValue() : void
416 416
     {
417 417
         $this->expectException(Exception\InvalidValueException::class);
418
-        $this->expectExceptionMessage('The ObjectWithDateTimeImmutable.value property ' .
418
+        $this->expectExceptionMessage('The ObjectWithDateTimeImmutable.value property '.
419 419
                                       'expects a valid date-time string or timestamp.');
420 420
 
421 421
         (new Hydrator)->hydrate(Fixtures\ObjectWithDateTimeImmutable::class, ['value' => 'foo']);
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
     public function testHydrateDateIntervalPropertyWithInvalidValue() : void
432 432
     {
433 433
         $this->expectException(Exception\InvalidValueException::class);
434
-        $this->expectExceptionMessage('The ObjectWithDateInterval.value property ' .
434
+        $this->expectExceptionMessage('The ObjectWithDateInterval.value property '.
435 435
                                       'expects a string.');
436 436
 
437 437
         (new Hydrator)->hydrate(Fixtures\ObjectWithDateInterval::class, ['value' => 42]);
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
     public function testHydrateDateIntervalPropertyWithInvalidFormat() : void
441 441
     {
442 442
         $this->expectException(Exception\InvalidValueException::class);
443
-        $this->expectExceptionMessage('The ObjectWithDateInterval.value property ' .
443
+        $this->expectExceptionMessage('The ObjectWithDateInterval.value property '.
444 444
                                       'expects a valid date-interval string based on ISO 8601.');
445 445
 
446 446
         (new Hydrator)->hydrate(Fixtures\ObjectWithDateInterval::class, ['value' => 'foo']);
@@ -471,9 +471,9 @@  discard block
 block discarded – undo
471 471
     public function testHydrateCustomEnumContainedProperyWithUnknownValue() : void
472 472
     {
473 473
         $this->expectException(Exception\InvalidValueException::class);
474
-        $this->expectExceptionMessage('The ObjectWithCustomEnum.value property ' .
475
-                                      'expects one of the following values: ' .
476
-                                      \implode(', ', Fixtures\CustomEnum::values()) . '.');
474
+        $this->expectExceptionMessage('The ObjectWithCustomEnum.value property '.
475
+                                      'expects one of the following values: '.
476
+                                      \implode(', ', Fixtures\CustomEnum::values()).'.');
477 477
 
478 478
         (new Hydrator)->hydrate(Fixtures\ObjectWithCustomEnum::class, ['value' => 'unknown']);
479 479
     }
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
         }
513 513
 
514 514
         $this->expectException(Exception\InvalidValueException::class);
515
-        $this->expectExceptionMessage('The ObjectWithStringableEnum.value property ' .
515
+        $this->expectExceptionMessage('The ObjectWithStringableEnum.value property '.
516 516
                                       'expects the following type: string.');
517 517
 
518 518
         (new Hydrator)->hydrate(Fixtures\ObjectWithStringableEnum::class, ['value' => 42]);
@@ -525,9 +525,9 @@  discard block
 block discarded – undo
525 525
         }
526 526
 
527 527
         $this->expectException(Exception\InvalidValueException::class);
528
-        $this->expectExceptionMessage('The ObjectWithStringableEnum.value property ' .
529
-                                      'expects one of the following values: ' .
530
-                                      \implode(', ', Fixtures\StringableEnum::values()) . '.');
528
+        $this->expectExceptionMessage('The ObjectWithStringableEnum.value property '.
529
+                                      'expects one of the following values: '.
530
+                                      \implode(', ', Fixtures\StringableEnum::values()).'.');
531 531
 
532 532
         (new Hydrator)->hydrate(Fixtures\ObjectWithStringableEnum::class, ['value' => 'foo']);
533 533
     }
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
         }
572 572
 
573 573
         $this->expectException(Exception\InvalidValueException::class);
574
-        $this->expectExceptionMessage('The ObjectWithNumerableEnum.value property ' .
574
+        $this->expectExceptionMessage('The ObjectWithNumerableEnum.value property '.
575 575
                                       'expects the following type: int.');
576 576
 
577 577
         (new Hydrator)->hydrate(Fixtures\ObjectWithNumerableEnum::class, ['value' => 'foo']);
@@ -584,9 +584,9 @@  discard block
 block discarded – undo
584 584
         }
585 585
 
586 586
         $this->expectException(Exception\InvalidValueException::class);
587
-        $this->expectExceptionMessage('The ObjectWithNumerableEnum.value property ' .
588
-                                      'expects one of the following values: ' .
589
-                                      \implode(', ', Fixtures\NumerableEnum::values()) . '.');
587
+        $this->expectExceptionMessage('The ObjectWithNumerableEnum.value property '.
588
+                                      'expects one of the following values: '.
589
+                                      \implode(', ', Fixtures\NumerableEnum::values()).'.');
590 590
 
591 591
         (new Hydrator)->hydrate(Fixtures\ObjectWithNumerableEnum::class, ['value' => 42]);
592 592
     }
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
     public function testHydrateAssociatedPropertyWithInvalidData() : void
609 609
     {
610 610
         $this->expectException(Exception\InvalidValueException::class);
611
-        $this->expectExceptionMessage('The ObjectWithAssociation.value property ' .
611
+        $this->expectExceptionMessage('The ObjectWithAssociation.value property '.
612 612
                                       'expects an associative array or object.');
613 613
 
614 614
         (new Hydrator)->hydrate(Fixtures\ObjectWithAssociation::class, ['value' => 'foo']);
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
     public function testHydrateAssociationCollectionPropertyWithInvalidData() : void
646 646
     {
647 647
         $this->expectException(Exception\InvalidValueException::class);
648
-        $this->expectExceptionMessage('The ObjectWithAssociations.value property ' .
648
+        $this->expectExceptionMessage('The ObjectWithAssociations.value property '.
649 649
                                       'expects an associative array or object.');
650 650
 
651 651
         (new Hydrator)->hydrate(Fixtures\ObjectWithAssociations::class, ['value' => 'foo']);
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
     public function testHydrateAssociationCollectionPropertyWithInvalidChild() : void
655 655
     {
656 656
         $this->expectException(Exception\InvalidValueException::class);
657
-        $this->expectExceptionMessage('The ObjectWithAssociations.value[0] property ' .
657
+        $this->expectExceptionMessage('The ObjectWithAssociations.value[0] property '.
658 658
                                       'expects an associative array or object.');
659 659
 
660 660
         (new Hydrator)->hydrate(Fixtures\ObjectWithAssociations::class, ['value' => ['foo']]);
Please login to merge, or discard this patch.