Lines Matching refs:assert
2 assert() - variation - test callback options using ini_get/ini_set/assert_options
4 assert.active = 1
5 assert.warning = 0
6 assert.callback = f1
7 assert.bail = 0
8 assert.exception=0
25 static function assert($file, $line, $unused, $desc)
31 echo "Initial values: ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
32 var_dump($r2=assert(0 != 0));
36 var_dump($rv = ini_set("assert.callback","f2"));
38 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
39 var_dump($r2=assert(0 != 0));
45 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
46 var_dump($r2=assert(0 != 0));
53 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
54 var_dump($r2=assert(0 != 0));
58 var_dump($rc = assert_options(ASSERT_CALLBACK,array("c1","assert")));
60 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
61 var_dump($r2=assert(0 != 0));
66 var_dump($rc=assert_options(ASSERT_CALLBACK,array(&$o,"assert")));
68 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
69 var_dump($r2=assert(0 != 0));
79 Initial values: ini.get("assert.callback") => [f1]
86 ini.get("assert.callback") => [f2]
93 ini.get("assert.callback") => [f2]
100 ini.get("assert.callback") => [f2]
109 string(6) "assert"
111 ini.get("assert.callback") => [f2]
113 Class assertion failed 52, "assert(0 != 0)"
121 string(6) "assert"
128 string(6) "assert"
130 ini.get("assert.callback") => [f2]
132 Class assertion failed 60, "assert(0 != 0)"