Adding unittest for empty setApp()

This commit is contained in:
Philipp Holzer 2019-02-05 22:56:57 +01:00
parent b79bd63231
commit ef16e1a037
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
2 changed files with 18 additions and 5 deletions

View file

@ -28,7 +28,7 @@ class BaseObject
public static function getApp()
{
if (empty(self::$app)) {
throw new InternalServerErrorException('App isn\' initialized.');
throw new InternalServerErrorException('App isn\'t initialized.');
}
return self::$app;