Home
last modified time | relevance | path

Searched refs:assert_options (Results 1 – 17 of 17) sorted by relevance

/PHP-5.5/ext/standard/tests/assert/
H A Dassert_basic4.phpt11 // Check the initial settings for all assert_options
13 //Using assert_options;
14 echo "Initial values: assert_options(ASSERT_ACTIVE) => [".assert_options(ASSERT_ACTIVE)."]\n";
15 echo "Initial values: assert_options(ASSERT_WARNING) => [".assert_options(ASSERT_WARNING)."]\n";
16 echo "Initial values: assert_options(ASSERT_BAIL) => [".assert_options(ASSERT_BAIL)."]\n";
17 echo "Initial values: assert_options(ASSERT_QUIET_EVAL) => [".assert_options(ASSERT_QUIET_EVAL)."]\…
18 echo "Initial values: assert_options(ASSERT_CALLBACK) => [".assert_options(ASSERT_CALLBACK)."]\n";
28 Initial values: assert_options(ASSERT_ACTIVE) => [0]
29 Initial values: assert_options(ASSERT_WARNING) => [0]
30 Initial values: assert_options(ASSERT_BAIL) => [0]
[all …]
H A Dassert_variation.phpt30 echo "Initial values: assert_options(ASSERT_CALLBACK) => [".assert_options(ASSERT_CALLBACK)."]\n";
38 echo "assert_options(ASSERT_CALLBACK) => [".assert_options(ASSERT_CALLBACK)."]\n";
44 var_dump($rv=assert_options(ASSERT_CALLBACK, "f3"));
45 echo "assert_options(ASSERT_CALLBACK) => [".assert_options(ASSERT_CALLBACK)."]\n";
52 var_dump($rc=assert_options(ASSERT_CALLBACK, "c1"));
53 echo "assert_options(ASSERT_CALLBACK) => [".assert_options(ASSERT_CALLBACK)."]\n";
60 var_dump($rao=assert_options(ASSERT_CALLBACK));
68 var_dump($rao=assert_options(ASSERT_CALLBACK));
81 assert_options(ASSERT_CALLBACK) => [f2]
88 assert_options(ASSERT_CALLBACK) => [f3]
[all …]
H A Dassert04.phpt12 assert_options(ASSERT_ACTIVE, 0);
17 assert_options(ASSERT_ACTIVE, 1);
20 /* Wrong parameter count in assert_options */
21 assert_options(ASSERT_ACTIVE, 0, 2);
23 /* Wrong parameter name in assert_options */
25 assert_options($test, 1);
32 assert_options(ASSERT_BAIL, 1);
41 Warning: assert_options() expects at most 2 parameters, 3 given in %s on line %d
43 Warning: assert_options() expects parameter 1 to be long, %unicode_string_optional% given in %s on …
H A Dassert.phpt25 assert_options(ASSERT_ACTIVE,1);
26 assert_options(ASSERT_QUIET_EVAL,1);
27 assert_options(ASSERT_WARNING,0);
31 assert_options(ASSERT_CALLBACK,"a");
34 assert_options(ASSERT_CALLBACK,array("a","assert"));
38 assert_options(ASSERT_CALLBACK,array(&$obj,"assert"));
H A Dassert_error1.phpt21 //Wrong number of parameters for assert_options()
22 assert_options(ASSERT_WARNING, 1);
23 var_dump($rao = assert_options(ASSERT_CALLBACK, "f1", 1));
26 //Unknown option for assert_options()
27 var_dump($rao=assert_options("F1", "f1"));
37 Warning: assert_options() expects at most 2 parameters, 3 given in %s on line %d
40 Warning: assert_options() expects parameter 1 to be long, string given in %s on line %d
H A Dassert03.phpt21 assert_options(ASSERT_ACTIVE,1);
22 assert_options(ASSERT_QUIET_EVAL,1);
23 assert_options(ASSERT_WARNING,0);
27 assert_options(ASSERT_CALLBACK,"a");
H A Dassert_basic2.phpt21 var_dump($o = assert_options(ASSERT_CALLBACK));
24 var_dump($o= assert_options(ASSERT_CALLBACK, "f2"));
25 var_dump($n= assert_options(ASSERT_CALLBACK));
H A Dassert_basic5.phpt2 assert() - basic - check switch on warnings using assert_options.
17 var_dump($rao=assert_options(ASSERT_WARNING, 1));
24 var_dump($rao=assert_options(ASSERT_WARNING, 0));
H A Dassert_closures.phpt10 assert_options(ASSERT_CALLBACK, function () { echo "Hello World!\n"; });
H A Dassert_basic3.phpt17 var_dump($rao=assert_options(ASSERT_BAIL, 1));
H A Dassert_basic6.phpt17 var_dump($rao = assert_options(ASSERT_BAIL, 1));
H A Dassert_error.phpt20 var_dump($ra0 = assert_options(ASSERT_QUIET_EVAL, 1));
H A Dassert_error2.phpt19 var_dump($rao = assert_options(ASSERT_BAIL, 1));
H A Dassert02.phpt27 assert_options(ASSERT_BAIL, 1);
/PHP-5.5/ext/standard/
H A Dphp_assert.h30 PHP_FUNCTION(assert_options);
H A Dassert.c264 PHP_FUNCTION(assert_options) in PHP_FUNCTION() argument
H A Dbasic_functions.c3371 PHP_FE(assert_options, arginfo_assert_options)

Completed in 32 milliseconds