class AppExceptionTest extends TestCase
{ public function testCannotDeleteManaged(): void
{ $e = AppException::
cannotDeleteManaged('ManagedApp'
);
static::
assertEquals(AppException::CANNOT_DELETE_COMPOSER_MANAGED,
$e->
getErrorCode());
} public function testNotCompatible(): void
{ $e = AppException::
notCompatible('IncompatibleApp'
);
static::
assertEquals(AppException::NOT_COMPATIBLE,
$e->
getErrorCode());
} public function testNotFound(): void
{ $e = AppException::
notFound('NonExistingApp'
);
static::
assertInstanceOf(AppNotFoundException::
class,
$e);
static::
assertEquals(AppException::NOT_FOUND,
$e->
getErrorCode());
}