spec\Ayaline\Bundle\ComposerBundle\Consumer\UploadComposerConsumerSpec::it_interrupt_the_execution_of_steps_when_any_of_them_return_non_zero_status PHP Метод

it_interrupt_the_execution_of_steps_when_any_of_them_return_non_zero_status() публичный Метод

public it_interrupt_the_execution_of_steps_when_any_of_them_return_non_zero_status ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface $step1, Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface $step2 )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$step1 Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface
$step2 Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface
    public function it_interrupt_the_execution_of_steps_when_any_of_them_return_non_zero_status(ConsumerEvent $event, StepInterface $step1, StepInterface $step2)
    {
        $this->beConstructedWith(array($step1, $step2));
        $step1->execute($event, Argument::type('string'))->shouldBeCalled()->willReturn(5);
        $step2->execute(Argument::any(), Argument::any())->shouldNotBeCalled();
        $this->process($event)->shouldReturn(5);
    }