function test_detection in geoPHP 7
Same name and namespace in other branches
- 8 geoPHP/tests/test.php \test_detection()
File
- geoPHP/
tests/ test.php, line 244
Code
function test_detection($value, $format, $file) {
$detected = geoPHP::detectFormat($value);
if ($detected != $format) {
if ($detected) {
print 'detected as ' . $detected . "\n";
}
else {
print "format not detected\n";
}
}
// Make sure it loads using auto-detect
geoPHP::load($value);
}