public function moveBeforeThrowsExceptionIfTargetExists() { $rootNode = $this->context->getNode('/'); $alfaNode = $rootNode->createNode('alfa'); $alfaChildNode = $alfaNode->createNode('alfa'); $alfaChildNode->moveBefore($alfaNode); }