installer = new class() extends InstallerAbstract { }; $this->installer->dbPool = $GLOBALS['dbpool']; } /** * @covers phpOMS\Module\InstallerAbstract * @group framework */ public function testInvalidModuleInstall() : void { $this->expectException(\UnexpectedValueException::class); $app = new class() extends ApplicationAbstract {}; $app->dbPool = $GLOBALS['dbpool']; $this->installer::install( $app, new ModuleInfo(__DIR__), new class () implements SettingsInterface { use OptionsTrait; public function get( mixed $ids = null, string | array $names = null, int $app = null, string $module = null, int $group = null, int $account = null ) : mixed { return null; } public function set(array $options, bool $store = false) : void {} public function save(array $options = []) : void {} public function create(array $options = []) : void {} } ); } }