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