/** * @test */ public function nextAllWillReturnSecondNodeAndThirdNodeInLevelForFirstAndSecondNodeInLevel() { $context = array($this->firstNodeInLevel, $this->secondNodeInLevel); $q = new FlowQuery($context); $operation = new NextAllOperation(); $operation->evaluate($q, array()); $output = $q->getContext(); $this->assertEquals(array($this->secondNodeInLevel, $this->thirdNodeInLevel), $output); }