ProophTest\ServiceBus\Plugin\InvokeStrategy\HandleCommandStrategyTest::it_invokes_the_handle_command_method_of_the_handler_without_command_name PHP Method

it_invokes_the_handle_command_method_of_the_handler_without_command_name() public method

    public function it_invokes_the_handle_command_method_of_the_handler_without_command_name()
    {
        $handleCommandStrategy = new HandleCommandStrategy();
        $doSomething = new CustomMessage("I am a command");
        $handleCommandHandler = new CustomMessageCommandHandler();
        $this->assertTrue($handleCommandStrategy->canInvoke($handleCommandHandler, $doSomething));
        $handleCommandStrategy->invoke($handleCommandHandler, $doSomething);
        $this->assertSame($doSomething, $handleCommandHandler->getLastMessage());
    }