public function testSupportsNormalization() { $decoratedNormalizerProphecy = $this->prophesize(NormalizerInterface::class); $decoratedNormalizerProphecy->supportsNormalization(Argument::any(), null)->willReturn(true)->shouldBeCalled(); $normalizer = new PartialCollectionViewNormalizer($decoratedNormalizerProphecy->reveal()); $this->assertTrue($normalizer->supportsNormalization(new \stdClass())); }