Samx Here
n1udSecurity


Server : Apache
System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64
User : hednacluml ( 122243)
PHP Version : 8.3.9
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Directory :  /home/hednacluml/chretien/plugins/auto/zcore/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/chretien/plugins/auto/zcore/tests/zcore_echafaudable.php
<?php
/**
 * Test unitaire de la fonction zcore_echafaudable
 * du fichier public/styliser_par_z.php
 *
 * genere automatiquement par TestBuilder
 * le 2010-03-04 22:02
 */

	$test = 'zcore_echafaudable';
	$remonte = "";
	while (!is_file($remonte."test.inc") and !is_dir($remonte.'ecrire/'))
		$remonte = $remonte."../";
	foreach ([$remonte."test.inc", $remonte."tests/test.inc", $remonte."tests/tests/legacy/test.inc"] as $f) {
		if (is_file($f)){
			require $f;
			break;
		}
	}
	if (!defined('_SPIP_TEST_INC')) {
		die('Impossible de trouver test.inc depuis ' .getcwd());
	}
	find_in_path("public/styliser_par_z.php",'',true);

	//
	// hop ! on y va
	//
	$err = tester_fun('test_zcore_echafaudable', essais_zcore_echafaudable());
	
	// si le tableau $err est pas vide ca va pas
	if ($err) {
		die ('<dl>' . join('', $err) . '</dl>');
	}

	echo "OK";

	function test_zcore_echafaudable(){
		$args = func_get_args();
		$f = (function_exists("zcore_echafaudable")?"zcore_echafaudable":"z_echafaudable");
		$res = call_user_func_array($f, $args);
		return is_array($res)?count($res):false;
	}

	function essais_zcore_echafaudable(){
		$essais = array (
  1 => 
  array (
    0 => false,
    1 => 'articles',
  ),
  2 => 
  array (
    0 => false,
    1 => 'rubriques',
  ),
  3 => 
  array (
    0 => false,
    1 => 'sites',
  ),
  4 => 
  array (
    0 => 3,
    1 => 'article',
  ),
);
		return $essais;
	}









SAMX