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