module = new NullModule($app); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('The null module is an instance of the module abstract')] public function testModule() : void { self::assertInstanceOf('\phpOMS\Module\ModuleAbstract', $this->module); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('A invalid module method call will create an error log')] public function testInvalidModuleMethodCalls() : void { $this->module->invalidMethodCall(); $path = TestUtils::getMember(FileLogger::getInstance(), 'path'); self::assertStringContainsString('Expected module/controller but got NullModule.', \file_get_contents($path)); } }