gestione gare pubbliche
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

29 righe
743 B

<?
use PHPUnit\Framework\TestCase;
class testCaseExecute extends TestCase {
protected function _execute(array $params = array(),string $file = "",string $method = "POST") {
global $root;
global $pdo;
global $config;
$error = true;
if (!empty($file)) {
if (file_exists($file)) {
if (!empty($params)) {
if ($method == "POST") {
$_POST = $params;
} else {
$_GET = $params;
}
}
$error = false;
ob_start();
include $file;
return ob_get_clean();
}
if ($error) {
throw new Exception('File non specificato o non trovato');
}
}
}
}
?>