spec\Alterway\Component\Workflow\WorkflowSpec::it_throws_exception_when_no_way_exist PHP Метод

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

public it_throws_exception_when_no_way_exist ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Alterway\Component\Workflow\SpecificationInterface $specA, Alterway\Component\Workflow\SpecificationInterface $specAB, Alterway\Component\Workflow\SpecificationInterface $specAC, Alterway\Component\Workflow\ContextInterface $ctx )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$specA Alterway\Component\Workflow\SpecificationInterface
$specAB Alterway\Component\Workflow\SpecificationInterface
$specAC Alterway\Component\Workflow\SpecificationInterface
$ctx Alterway\Component\Workflow\ContextInterface
    function it_throws_exception_when_no_way_exist(EventDispatcherInterface $dispatcher, Spec $specA, Spec $specAB, Spec $specAC, Ctx $ctx)
    {
        $this->let($dispatcher, $specA, $specAB, $specAC);
        $specAB->isSatisfiedBy($ctx)->willReturn(false);
        $specAC->isSatisfiedBy($ctx)->willReturn(false);
        $this->initialize('A');
        $this->shouldThrow('Alterway\\Component\\Workflow\\Exception\\NoOpenTransitionException')->duringNext($ctx);
    }