public function testRegistrationFailed(): void
{ $e = AppException::
registrationFailed('ToBeRegisteredApp', 'Invalid signature'
);
static::
assertEquals(AppException::REGISTRATION_FAILED,
$e->
getErrorCode());
static::
assertEquals('App registration for "ToBeRegisteredApp" failed: Invalid signature',
$e->
getMessage());
} public function testLicenseCouldNotBeVerified(): void
{ $e = AppException::
licenseCouldNotBeVerified('UnlicensedApp'
);
static::
assertEquals(AppException::LICENSE_COULD_NOT_BE_VERIFIED,
$e->
getErrorCode());
} public function testInvalidConfiguration(): void
{ $e = AppException::
invalidConfiguration('InvalidlyConfiguredApp',
new AppNameError('InvalidlyConfiguredApp'
));
static::
assertEquals(AppException::INVALID_CONFIGURATION,
$e->
getErrorCode());
}