We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace27c4 commit 65a7e5dCopy full SHA for 65a7e5d
resources/lib/UnitySite.php
@@ -3,9 +3,19 @@
3
namespace UnityWebPortal\lib;
4
5
use phpseclib3\Crypt\PublicKeyLoader;
6
+use UnityWebPortal\lib\exceptions\TestingDieException;
7
8
class UnitySite
9
{
10
+ public static function die($x)
11
+ {
12
+ if ($GLOBALS["PHPUNIT_NO_DIE_PLEASE"] ?? false) {
13
+ throw new PhpUnitNoDieException(strval($x));
14
+ } else {
15
+ \die($x);
16
+ }
17
18
+
19
public static function redirect($destination)
20
21
if ($_SERVER["PHP_SELF"] != $destination) {
0 commit comments