public function iShouldBeAbleToRenameTheNodeTo($not, $newName)
{
if ($this->isolated === true) {
$this->callStepInSubProcess(__METHOD__, sprintf(' %s %s %s %s', 'string', escapeshellarg($not), 'string', escapeshellarg($newName)));
} else {
try {
$this->iRenameTheNodeTo($newName);
} catch (\Exception $exception) {
}
if (!empty($not) && !isset($exception)) {
Assert::fail('Expected an exception while renaming the node');
} elseif (empty($not) && isset($exception)) {
throw $exception;
}
}
}