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