function it_finds_open_transition(Node $node, Spec $true, Spec $false, Ctx $ctx)
 {
     $true->isSatisfiedBy($ctx)->willReturn(true);
     $false->isSatisfiedBy($ctx)->willReturn(false);
     $this->addTransition($node, $true);
     $this->addTransition($node, $false);
     $transitions = $this->getOpenTransitions($ctx);
     $transitions->shouldBeArray();
     $transitions->shouldHaveCount(1);
     $transitions[0]->shouldHaveType('Alterway\\Component\\Workflow\\Transition');
 }
 function let(EventDispatcherInterface $dispatcher, Spec $specA, Spec $specAB, Spec $specAC)
 {
     $builder = new Builder($dispatcher->getWrappedObject());
     $builder->open('A', $specA->getWrappedObject())->link('A', 'B', $specAB->getWrappedObject())->link('A', 'C', $specAC->getWrappedObject());
     $this->beConstructedThrough(array($builder, 'getWorkflow'));
 }