public it_throws_exception_when_resource_does_not_implement_code_aware_interface ( Symfony\Component\Form\FormEvent $event, $object ) | ||
$event | Symfony\Component\Form\FormEvent |
function it_throws_exception_when_resource_does_not_implement_code_aware_interface(FormEvent $event, $object)
{
$event->getData()->willReturn($object);
$this->shouldThrow(UnexpectedTypeException::class)->during('preSetData', [$event]);
}