๐Ÿงช **COMPREHENSIVE COUNTRY DETECTION TEST SUITE** ================================================ 1๏ธโƒฃ **Basic Country Detection** ----------------------------- โœ… Indonesia โ†’ Indonesian โœ… United States โ†’ English โœ… China โ†’ Chinese โœ… Saudi Arabia โ†’ Arabic โœ… Thailand โ†’ Thai โœ… Brazil โ†’ Portuguese โœ… Spain โ†’ Spanish โœ… Japan โ†’ Japanese โœ… Korea โ†’ Korean โœ… No country โ†’ English (fallback) 2๏ธโƒฃ **Helper Methods Tests** ------------------------- โœ… Indonesia is supported โœ… France is not supported โœ… Arabic has 17 countries โœ… Spanish has 19 countries โœ… All 9 languages are mapped 3๏ธโƒฃ **Edge Cases & Validation** ----------------------------- โœ… Invalid Empty string header โ†’ null โœ… Invalid 3-letter country code โ†’ null โœ… Invalid Numeric country code โ†’ null โœ… Lowercase id โ†’ ID conversion 4๏ธโƒฃ **Browser Integration Tests** ------------------------------- Dracin
Internal Server Error

Error

Call to undefined function shell_exec()

LARAVEL 12.31.1
PHP 8.3.30
UNHANDLED
CODE 0
GET
https://komikcast.xyz

Overview

DATE
2026/03/03 12:11:44.365 UTC
STATUS CODE
500
METHOD
GET

Exception trace

dev-utils/test-country-detection-suite.php
dev-utils/test-country-detection-suite.php:107
102    ['country' => 'CN', 'expected' => 'zh'],
103    ['country' => 'SA', 'expected' => 'ar'],
104];
105
106foreach ($browserTests as $test) {
107    $result = shell_exec("curl -s -H \"CF-IPCountry: {$test['country']}\" \"http://dracin-git.test/\" 2>/dev/null | grep \"suggestedLanguage\" | sed 's/.*suggestedLanguage":"\\([^&]*\\)".*/\\1/' | head -1");
108    $result = trim($result);
109    runTest("Browser: {$test['country']} โ†’ {$test['expected']}", $result === $test['expected']);
110}
111
112echo "\n5๏ธโƒฃ **RSS Integration Tests**\n";
113echo "---------------------------\n";
114
115// Test RSS feeds are working
116$rssResult = shell_exec('curl -s "http://dracin-git.test/rss.xml" 2>/dev/null | head -1');
117runTest('RSS feeds accessible', strpos($rssResult, '<?xml') === 0);
118
119

Queries

// No queries executed

Headers

host
komikcast.xyz
user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
accept
*/*
accept-language
en-us,en;q=0.5
accept-charset
ISO-8859-1,utf-8;q=0.7,*;q=0.7
x-https
1
accept-encoding
gzip, br, zstd, deflate

Body

// No request body

Routing

// No routing context

Routing parameters

// No routing parameters