Dumplie\SharedKernel\Application\Command\Extension::expands PHP Method

expands() public method

public expands ( Command $command ) : boolean
$command Command
return boolean
    public function expands(Command $command) : bool;

Usage Example

 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);
 }
All Usage Examples Of Dumplie\SharedKernel\Application\Command\Extension::expands