assertSame([], $rCode); } public function testThePanelResizesThroughItsRoute(): void { $this->assertStringContainsString("\$router->get('resize', [AdminResizeController::class, 'index']);", (string) file_get_contents(MAIN_HOME . 'Public/routes/admin.php')); $this->assertStringContainsString('ImageResizeService::serve(', (string) file_get_contents(MAIN_HOME . 'Public/Controllers/Admin/AdminResizeController.php')); $rByName = []; foreach (glob(MAIN_HOME . 'Public/Views/admin/*.php') ?: [] as $rFile) { if (str_contains((string) file_get_contents($rFile), 'resize.php')) { $rByName[] = basename($rFile); } } $this->assertSame([], $rByName, 'no page asks for the script by its file name'); } }