phpunit test failures are happening because the dieWithSignature() defaults to null for the $httpCode argument.
The failure is because null is passed directly to newWithMessage()'s $httpCode is an (not strictly typed) int whose default is 0 and is ultimately passed to the Exception's $code argument which is typed as int.