installer = new class() extends InstallerAbstract { }; } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('Invalid or missing module status file throws exception during installation')] 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|null $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 {} } ); } }