The method serialize() does not exist on Tests\CalendarBundle\Serializer\SerializerSpec. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
50
->/** @scrutinizer ignore-call */
51
serialize([$event1, $event2])
Loading history...
51
->shouldReturn(json_encode($data));
52
}
53
54
public function it_serialzes_should_return_emtpy_if_events_are_empty()