Skip to content

Commit 0b65242

Browse files
committed
runtimeerror -> runtimeexception
1 parent dbf2ffd commit 0b65242

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/functional/AccountDeletionRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private function assertNumberAccountDeletionRequests(int $x)
1414
$this->assertTrue($USER->hasRequestedAccountDeletion());
1515
$this->assertTrue($SQL->accDeletionRequestExists($USER->uid));
1616
} else {
17-
throw new \RuntimeError("x must not be negative");
17+
throw new RuntimeException("x must not be negative");
1818
}
1919
$this->assertEquals($x, $this->getNumberAccountDeletionRequests());
2020
}

test/functional/PiBecomeRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private function assertNumberPiBecomeRequests(int $x)
1313
} elseif ($x > 0) {
1414
$this->assertTrue($SQL->requestExists($USER->uid));
1515
} else {
16-
throw new \RuntimeError("x must not be negative");
16+
throw new RuntimeException("x must not be negative");
1717
}
1818
$this->assertEquals($x, $this->getNumberPiBecomeRequests());
1919
}

0 commit comments

Comments
 (0)