@@ -714,7 +714,7 @@ public function testNormalizeWithOnlyNormalizationGroups(): void
714
714
$ ref = 'Dummy- ' .implode ('_ ' , $ groups );
715
715
716
716
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
717
- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, ['serializer_groups ' => $ groups ])->shouldBeCalled (1 )->willReturn (new PropertyNameCollection (['gerard ' ]));
717
+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, ['serializer_groups ' => $ groups ])->shouldBeCalledTimes (1 )->willReturn (new PropertyNameCollection (['gerard ' ]));
718
718
$ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [])->shouldBeCalled ()->willReturn (new PropertyNameCollection (['name ' ]));
719
719
$ propertyNameCollectionFactoryProphecy ->create (Dummy::class)->shouldBeCalled ()->willReturn (new PropertyNameCollection (['name ' ]));
720
720
@@ -1048,7 +1048,7 @@ public function testNormalizeWithOnlyDenormalizationGroups(): void
1048
1048
$ documentation = new Documentation (new ResourceNameCollection ([Dummy::class]), $ title , $ description , $ version );
1049
1049
1050
1050
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
1051
- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, ['serializer_groups ' => 'dummy ' ])->shouldBeCalled (1 )->willReturn (new PropertyNameCollection (['gerard ' ]));
1051
+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, ['serializer_groups ' => 'dummy ' ])->shouldBeCalledTimes (1 )->willReturn (new PropertyNameCollection (['gerard ' ]));
1052
1052
$ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [])->shouldBeCalled ()->willReturn (new PropertyNameCollection (['name ' ]));
1053
1053
$ propertyNameCollectionFactoryProphecy ->create (Dummy::class)->shouldBeCalled ()->willReturn (new PropertyNameCollection (['name ' ]));
1054
1054
@@ -1266,7 +1266,7 @@ public function testNormalizeWithNormalizationAndDenormalizationGroups(): void
1266
1266
$ documentation = new Documentation (new ResourceNameCollection ([Dummy::class]), $ title , $ description , $ version );
1267
1267
1268
1268
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
1269
- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, ['serializer_groups ' => 'dummy ' ])->shouldBeCalled (1 )->willReturn (new PropertyNameCollection (['gerard ' ]));
1269
+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, ['serializer_groups ' => 'dummy ' ])->shouldBeCalledTimes (1 )->willReturn (new PropertyNameCollection (['gerard ' ]));
1270
1270
$ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [])->shouldBeCalled ()->willReturn (new PropertyNameCollection (['name ' ]));
1271
1271
$ propertyNameCollectionFactoryProphecy ->create (Dummy::class)->shouldBeCalled ()->willReturn (new PropertyNameCollection (['name ' ]));
1272
1272
@@ -1781,10 +1781,10 @@ public function testNormalizeWithNestedNormalizationGroups(): void
1781
1781
$ relatedDummyRef = 'RelatedDummy- ' .implode ('_ ' , $ groups );
1782
1782
1783
1783
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
1784
- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, ['serializer_groups ' => $ groups ])->shouldBeCalled (1 )->willReturn (new PropertyNameCollection (['name ' , 'relatedDummy ' ]));
1784
+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, ['serializer_groups ' => $ groups ])->shouldBeCalledTimes (1 )->willReturn (new PropertyNameCollection (['name ' , 'relatedDummy ' ]));
1785
1785
$ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [])->shouldBeCalled ()->willReturn (new PropertyNameCollection (['name ' ]));
1786
1786
$ propertyNameCollectionFactoryProphecy ->create (Dummy::class)->shouldBeCalled ()->willReturn (new PropertyNameCollection (['name ' ]));
1787
- $ propertyNameCollectionFactoryProphecy ->create (RelatedDummy::class, ['serializer_groups ' => $ groups ])->shouldBeCalled (1 )->willReturn (new PropertyNameCollection (['name ' ]));
1787
+ $ propertyNameCollectionFactoryProphecy ->create (RelatedDummy::class, ['serializer_groups ' => $ groups ])->shouldBeCalledTimes (1 )->willReturn (new PropertyNameCollection (['name ' ]));
1788
1788
1789
1789
$ dummyMetadata = new ResourceMetadata (
1790
1790
'Dummy ' ,
0 commit comments