4
4
5
5
use PHPUnit \Framework \TestCase ;
6
6
use PHPUnit \Framework \Attributes \DataProvider ;
7
- use UnityWebPortal \lib \exceptions \PhpUnitNoDieException ;
7
+ use UnityWebPortal \lib \exceptions \NoDieException ;
8
8
// use PHPUnit\Framework\Attributes\BackupGlobals;
9
9
// use PHPUnit\Framework\Attributes\RunTestsInSeparateProcess;
10
10
@@ -108,15 +108,15 @@ public function testArrayGetOrBadRequestReturnsArrayWhenTraversingPartially()
108
108
public function testArrayGetOrBadRequestThrowsOnMissingKeyFirstLevel ()
109
109
{
110
110
$ array = ["x " => 1 ];
111
- $ this ->expectException (PhpUnitNoDieException ::class);
111
+ $ this ->expectException (NoDieException ::class);
112
112
$ this ->expectExceptionMessage ('["y"] ' );
113
113
UnitySite::arrayGetOrBadRequest ($ array , "y " );
114
114
}
115
115
116
116
public function testArrayGetOrBadRequestThrowsOnMissingKeyNested ()
117
117
{
118
118
$ array = ["a " => []];
119
- $ this ->expectException (PhpUnitNoDieException ::class);
119
+ $ this ->expectException (NoDieException ::class);
120
120
// Should include both levels
121
121
$ this ->expectExceptionMessage ('["a","b"] ' );
122
122
UnitySite::arrayGetOrBadRequest ($ array , "a " , "b " );
@@ -125,7 +125,7 @@ public function testArrayGetOrBadRequestThrowsOnMissingKeyNested()
125
125
public function testArrayGetOrBadRequestThrowsWhenValueIsNullButKeyNotSet ()
126
126
{
127
127
$ array = ["a " => null ];
128
- $ this ->expectException (PhpUnitNoDieException ::class);
128
+ $ this ->expectException (NoDieException ::class);
129
129
$ this ->expectExceptionMessage ('["a"] ' );
130
130
UnitySite::arrayGetOrBadRequest ($ array , "a " );
131
131
}
0 commit comments