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/infant/plugins-dist/filtres_images/tests/ |
<?php /** * Test unitaire de la fonction multiple_de_trois * du fichier filtres/images_lib.php * * genere automatiquement par TestBuilder * le */ $test = 'multiple_de_trois'; $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('filtres/images_lib.php', '', true); // // hop ! on y va // $err = tester_fun('multiple_de_trois', essais_multiple_de_trois()); // si le tableau $err est pas vide ca va pas if ($err) { die('<dl>' . join('', $err) . '</dl>'); } echo 'OK'; function essais_multiple_de_trois() { $essais = array( 0 => array( 0 => 0, 1 => 0, ), 1 => array( 0 => -0, 1 => -1, ), 2 => array( 0 => 0, 1 => 1, ), 3 => array( 0 => 3, 1 => 2, ), 4 => array( 0 => 3, 1 => 3, ), 5 => array( 0 => 3, 1 => 4, ), 6 => array( 0 => 6, 1 => 5, ), 7 => array( 0 => 6, 1 => 6, ), 8 => array( 0 => 6, 1 => 7, ), 9 => array( 0 => 9, 1 => 10, ), 10 => array( 0 => 21, 1 => 20, ), 11 => array( 0 => 30, 1 => 30, ), 12 => array( 0 => 51, 1 => 50, ), 13 => array( 0 => 99, 1 => 100, ), 14 => array( 0 => 999, 1 => 1000, ), 15 => array( 0 => 9999, 1 => 10000, ), ); return $essais; }