/**
  * Test xxxNestedSet::getDescendantsTwice()
  */
 public function testPeerGetDescendantsTwice()
 {
     $nodesWithoutPool = array();
     $nodesWithPool = array();
     CategoryPeer::clearInstancePool();
     $cat = CategoryPeer::retrieveRoot(1);
     $children = $cat->getDescendants();
     foreach ($children as $child) {
         $nodesWithoutPool[] = $child->getTitle();
     }
     $cat = CategoryPeer::retrieveRoot(1);
     $children = $cat->getDescendants();
     foreach ($children as $child) {
         $nodesWithPool[] = $child->getTitle();
     }
     $this->assertEquals($nodesWithoutPool, $nodesWithPool, 'Retrieved nodes must be the same with and without InstancePooling');
 }