public function testShiftRLValues()
 {
     $this->assertTrue(method_exists('Table10Peer', 'shiftRLValues'), 'nested_set adds a shiftRLValues() method');
     $this->initTreeWithScope();
     Table10Peer::shiftRLValues(1, 100, null, 1);
     Table10Peer::clearInstancePool();
     $expected = array('t1' => array(1, 14, 0), 't2' => array(2, 3, 1), 't3' => array(4, 13, 1), 't4' => array(5, 6, 2), 't5' => array(7, 12, 2), 't6' => array(8, 9, 3), 't7' => array(10, 11, 3));
     $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftRLValues does not shift anything when the first parameter is higher than the highest right value');
     $expected = array('t8' => array(1, 6, 0), 't9' => array(2, 3, 1), 't10' => array(4, 5, 1));
     $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftRLValues does not shift anything out of the scope');
     $this->initTreeWithScope();
     Table10Peer::shiftRLValues(1, 1, null, 1);
     Table10Peer::clearInstancePool();
     $expected = array('t1' => array(2, 15, 0), 't2' => array(3, 4, 1), 't3' => array(5, 14, 1), 't4' => array(6, 7, 2), 't5' => array(8, 13, 2), 't6' => array(9, 10, 3), 't7' => array(11, 12, 3));
     $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftRLValues can shift all nodes to the right');
     $expected = array('t8' => array(1, 6, 0), 't9' => array(2, 3, 1), 't10' => array(4, 5, 1));
     $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftRLValues does not shift anything out of the scope');
     $this->initTreeWithScope();
     Table10Peer::shiftRLValues(-1, 1, null, 1);
     Table10Peer::clearInstancePool();
     $expected = array('t1' => array(0, 13, 0), 't2' => array(1, 2, 1), 't3' => array(3, 12, 1), 't4' => array(4, 5, 2), 't5' => array(6, 11, 2), 't6' => array(7, 8, 3), 't7' => array(9, 10, 3));
     $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftRLValues can shift all nodes to the left');
     $expected = array('t8' => array(1, 6, 0), 't9' => array(2, 3, 1), 't10' => array(4, 5, 1));
     $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftRLValues does not shift anything out of the scope');
     $this->initTreeWithScope();
     Table10Peer::shiftRLValues(1, 5, null, 1);
     Table10Peer::clearInstancePool();
     $expected = array('t1' => array(1, 15, 0), 't2' => array(2, 3, 1), 't3' => array(4, 14, 1), 't4' => array(6, 7, 2), 't5' => array(8, 13, 2), 't6' => array(9, 10, 3), 't7' => array(11, 12, 3));
     $this->assertEquals($this->dumpTreeWithScope(1), $expected, 'shiftRLValues can shift some nodes to the right');
     $expected = array('t8' => array(1, 6, 0), 't9' => array(2, 3, 1), 't10' => array(4, 5, 1));
     $this->assertEquals($this->dumpTreeWithScope(2), $expected, 'shiftRLValues does not shift anything out of the scope');
 }