public function pre(Command $command, ServiceLocator $serviceLocator);
function it_executes_pre_endpoint_for_matching_commands(Extension $extension, Command $command, ServiceLocator $serviceLocator) { $extension->expands($command)->willReturn(true); $extension->pre($command, $serviceLocator)->shouldBeCalled(); $this->register($extension); $this->pre($command, $serviceLocator); }