PhpGitHooks\Module\Shared\Tests\Infrastructure\CommandBusTrait::shouldHandleCommand PHP Метод

shouldHandleCommand() защищенный Метод

protected shouldHandleCommand ( Bruli\EventBusBundle\CommandBus\CommandInterface $command )
$command Bruli\EventBusBundle\CommandBus\CommandInterface
    protected function shouldHandleCommand(CommandInterface $command)
    {
        $this->getCommandBus()->shouldReceive('handle')->once()->with((new SimilarTo())->compare($command));
    }