installer = new class() extends InstallerAbstract { }; } /** * @testdox Invalid or missing module status file throws exception during installation * @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 $unit = 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 {} } ); } }