/** * Test getting our leaf node based on condition * @return void */ public function testGetLeafNode() { $leaf = $this->tree->getLeafNode(); $this->assertEquals($leaf['node']->getSegmentId(), 3); }