assertFileExists(__DIR__ . '/../../config.php', '配置文件应该存在'); } /** * 测试样式文件存在 */ public function testStyleFileExists(): void { $this->assertFileExists(__DIR__ . '/../../style.css', '样式文件应该存在'); } /** * 测试入口文件存在 */ public function testIndexFileExists(): void { $this->assertFileExists(__DIR__ . '/../../index.php', '入口文件应该存在'); } /** * 测试仪表盘文件存在 */ public function testDashboardFileExists(): void { $this->assertFileExists(__DIR__ . '/../../dashboard.php', '仪表盘文件应该存在'); } /** * 测试查看文件存在 */ public function testViewFileExists(): void { $this->assertFileExists(__DIR__ . '/../../view.php', '查看文件应该存在'); } }