/** * Test getters */ public function testGets() { $node = $this->getMock('Choccybiccy\\Pathfinder\\NodeInterface'); $parent = new Step($node, null); $step = new Step($node, $parent); $this->assertEquals($node, $parent->getNode()); $this->assertEquals($parent, $step->getParent()); }