assertStringContainsString('Koneksi dengan MYSQL berhasil', $output, "Koneksi dengan MYSQL gagal"); // Check if the database creation message is in the output $this->assertStringContainsString('Database berhasil dibuat', $output, "Database gagal dibuat"); } } // Sample function to read from a file (replace this with your actual implementation) function readFileContent($filePath) { if (!file_exists($filePath)) { throw new \Exception("File not found: $filePath"); } return file_get_contents($filePath); } ?>