The event object you passed in the expectation is not the same as passed into the dispatch method.
Nothing wrong about it, you only have to verify it a bit differently. Don't look for a specific instance, but for any instance of a class:
$dispatcher->dispatch(
'workflow.post_extract',
Argument::type('Symfony\Component\EventDispatcher\GenericEvent')
)->shouldBeCalled();