modulePath($module); self::assertDirectoryExists($modulePath, $this->moduleRuleMessage(self::MESSAGE_MODULE_DIRECTORY_MISSING, $module)); $entries = array_values(array_filter(scandir($modulePath) ?: [], static fn (string $entry): bool => !in_array($entry, ['.', '..'], true))); sort($entries); self::assertSame($this->expectedModuleEntries($module), $entries, $this->moduleRuleMessage(self::MESSAGE_STANDARD_MODULE_STRUCTURE, $module)); } } public function testLegacyGlobalViewsDirectoryHasBeenRemoved(): void { self::assertDirectoryDoesNotExist($this->projectPath('views')); } public function testFixtureApplicationExposesAModuleManifest(): void { self::assertDirectoryExists($this->projectPath('tests/Fixtures/Application/config')); self::assertFileExists($this->projectPath('tests/Fixtures/Application/config/modules.php')); } }