public function testRetrieveTree() { list($t1, $t2, $t3, $t4, $t5, $t6, $t7) = $this->initTree(); $tree = Table9Peer::retrieveTree(); $this->assertEquals(array($t1, $t2, $t3, $t4, $t5, $t6, $t7), $tree, 'retrieveTree() retrieves the whole tree'); $c = new Criteria(); $c->add(Table9Peer::LEFT_COL, 4, Criteria::GREATER_EQUAL); $tree = Table9Peer::retrieveTree($c); $this->assertEquals(array($t3, $t4, $t5, $t6, $t7), $tree, 'retrieveTree() accepts a Criteria as first parameter'); }