public function testRetrieveTree()
 {
     list($t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) = $this->initTreeWithScope();
     /* Tree used for tests
        Scope 1
        t1
        |  \
        t2 t3
           |  \
           t4 t5
              |  \
              t6 t7
        Scope 2
        t8
        | \
        t9 t10
        */
     $tree = \NestedSetTable10Query::retrieveTree(1);
     $this->assertEquals([$t1, $t2, $t3, $t4, $t5, $t6, $t7], $tree->getArrayCopy(), 'retrieveTree() retrieves the scoped tree');
     $tree = \NestedSetTable10Query::retrieveTree(2);
     $this->assertEquals([$t8, $t9, $t10], $tree->getArrayCopy(), 'retrieveTree() retrieves the scoped tree');
     $c = new Criteria();
     $c->add(\NestedSetTable10::LEFT_COL, 4, Criteria::GREATER_EQUAL);
     $tree = \NestedSetTable10Query::retrieveTree(1, $c);
     $this->assertEquals([$t3, $t4, $t5, $t6, $t7], $tree->getArrayCopy(), 'retrieveTree() accepts a Criteria as first parameter');
 }