From e79f7e3bd992c7f0915ef9afe7afb6d79740527a Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 14 Jan 2019 19:29:25 +0000 Subject: Reorganize the testsuite Splitting the testsuite in several components makes it easier to manage and comprehend. This was also needed some some tests aren't passing on Alpine Linux, but we still want to run as many of them as we can on this platform.--- src/tests/disabled_function_local_var_4.phpt | 57 ---------------------------- 1 file changed, 57 deletions(-) delete mode 100644 src/tests/disabled_function_local_var_4.phpt (limited to 'src/tests/disabled_function_local_var_4.phpt') diff --git a/src/tests/disabled_function_local_var_4.phpt b/src/tests/disabled_function_local_var_4.phpt deleted file mode 100644 index b441576..0000000 --- a/src/tests/disabled_function_local_var_4.phpt +++ /dev/null @@ -1,57 +0,0 @@ ---TEST-- -Disable functions - match on a local variable ---SKIPIF-- - ---INI-- -sp.configuration_file={PWD}/config/disabled_function_local_var_2.ini ---FILE-- -nop]'] = Array(); -$b['_GET[obj->nop]']["qwe"] = Array(); -$b[456] = Array(); -$b[456]['zxc'] = "qwe"; -$b[456]['nop'] = "nop"; -$b['_GET[obj->nop]']["qwe"][321] = "Yeay"; -$b["123"] = "qwe"; -$b["123a"] = "foo"; -$b["asd"] = "zxc"; -$b['_GET]["obj->nop::qwe']["qwe"][1337] = (Object)(['uio' => "valeur de apres"]); -$b['_GET]["obj->nop::qwe']["qwe"][1338] = (Object)(['uio' => "valeur de a"]); -$c = (Object)(['qwe' => Array(\qwe\UNE_CONSTANTE => 'zxc')]); -$idk = 'test_asd'; -$class_name = 'test_object'; -class test_object { - const TEST_VALUE = ['constant' => 'truc']; - private $asd = "qwe"; - public $qwe = 'bar'; - private $test_asd = ''; - function __construct($asd) { - $this->test_asd = $asd; - } - function do_a_barell_roll() { - var_dump($this->test_asd); - } -} -$d = new test_object($c); -$a = 1338; -function test(){ - strlen("qwe"); -} -echo "Valeur: " . $b['_GET]["obj->nop::qwe']["qwe"][$a]->uio . "\n"; -test(); - -$a = 1337; -echo "Valeur: " . $b['_GET]["obj->nop::qwe']["qwe"][$a]->uio . "\n"; -test(); -} -?> ---EXPECTF-- -Valeur: valeur de a -Valeur: valeur de apres - -Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_4.php on line 36 \ No newline at end of file -- cgit v1.3