Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 174) sorted by relevance

1234567

/PHP-7.0/ext/standard/tests/assert/
H A Dassert02.phpt2 catch assert() errors
4 assert.active=1
5 assert.warning=1
6 assert.callback=
7 assert.bail=0
8 assert.quiet_eval=0
19 assert(1);
20 assert('1');
21 assert('$a');
23 assert('aa=sd+as+safsafasfasafsaf');
[all …]
H A Dassert_basic.phpt2 assert() - basic - check that assert runs when assert.active is set to 1.
4 assert.active = 1
5 assert.warning = 0
6 assert.callback = f1
7 assert.bail = 0
8 assert.quiet_eval = 0
15 //String assert
17 var_dump($r2=assert($sa));
21 //Non string assert
22 var_dump($r2=assert(0));
[all …]
H A Dassert_basic1.phpt2 assert() - basic - check that assert can be switched off
4 assert.active = 0
5 assert.warning = 0
6 assert.callback = f1
7 assert.bail = 0
8 assert.quiet_eval = 0
16 //String assert
18 var_dump($r2=assert($sa));
22 //Non string assert
23 var_dump($r2=assert(0));
[all …]
H A Dassert_variation.phpt4 assert.active = 1
5 assert.warning = 0
6 assert.callback = f1
7 assert.bail = 0
8 assert.quiet_eval = 0
39 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
46 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
54 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n";
105 string(6) "assert"
119 string(6) "assert"
[all …]
H A Dassert_basic2.phpt2 assert() - basic - correct call back values before and after assert.
4 assert.active = 1
5 assert.warning = 1
6 assert.callback=f1
7 assert.bail = 0
8 assert.quiet_eval = 0
22 assert(0);
26 assert(0);
32 Warning: assert(): assert(0) failed in %s on line 13
37 Warning: assert(): assert(0) failed in %s on line 17
H A Dassert_basic4.phpt4 assert.active = 0
5 assert.warning = 0
6 assert.bail = 0
7 assert.quiet_eval = 0
8 assert.callback = f1
21 echo "Initial values: ini.get(\"assert.active\") => [".ini_get("assert.active")."]\n";
22 echo "Initial values: ini.get(\"assert.warning\") => [".ini_get("assert.warning")."]\n";
23 echo "Initial values: ini.get(\"assert.bail\") => [".ini_get("assert.bail")."]\n";
24 echo "Initial values: ini.get(\"assert.quiet_eval\") => [".ini_get("assert.quiet_eval")."]\n";
25 echo "Initial values: ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
[all …]
H A Dassert04.phpt2 misc assert() tests tests
4 assert.active = 1
5 assert.warning = 1
6 assert.callback =
7 assert.bail = 0
8 assert.quiet_eval = 0
13 assert(1);
28 assert(0);
33 assert(0);
45 Warning: assert(): assert(0) failed in %s on line %d
[all …]
H A Dassert.phpt2 assert()
5 assert.active = 0
6 assert.warning = 1
7 assert.callback =
8 assert.bail = 0
9 assert.quiet_eval = 0
19 function assert($file,$line,$myev)
32 assert('$a != 0');
34 assert_options(ASSERT_CALLBACK,array("a","assert"));
35 assert('$a != 0');
[all …]
H A Dassert_error.phpt2 assert() - error - give assert nonsense string with quiet_eval on then off
4 assert.active = 1
5 assert.warning = 1
6 assert.callback = f1
7 assert.bail = 0
8 assert.quiet_eval = 0
18 var_dump($r2=assert($sa));
22 var_dump($r2=assert($sa));
24 Notice: Use of undefined constant threemeninaboat - assumed 'threemeninaboat' in %s(9) : assert cod…
H A Dassert_error3.phpt2 assert() - basic - Test recoverable error
4 assert.active = 1
5 assert.warning = 1
6 assert.callback = f1
7 assert.quiet_eval = 0
8 assert.bail = 0
13 var_dump($r2 = assert("0 $ 0"));
16 Parse error: syntax error, unexpected '$', expecting ';' in %s(2) : assert code on line 1
18 Catchable fatal error: assert(): Failure evaluating code:
H A Dassert_closures.phpt2 assert() - basic - accept closures as callback.
4 assert.active = 1
5 assert.warning = 1
6 assert.bail = 0
7 assert.quiet_eval = 0
11 assert(0);
16 Warning: assert(): assert(0) failed in %s on line %d
H A Dassert_error4.phpt2 assert() - basic - Test recoverable error
4 assert.active = 1
5 assert.warning = 1
6 assert.callback = f1
7 assert.quiet_eval = 0
8 assert.bail = 0
14 var_dump($r2 = assert($sa, "Describing what was asserted"));
17 Parse error: syntax error, %s in %s(3) : assert code on line 1
19 Catchable fatal error: assert(): Failure evaluating code:
H A Dassert_basic5.phpt2 assert() - basic - check switch on warnings using assert_options.
4 assert.active = 1
5 assert.warning = 0
6 assert.callback = f1
7 assert.bail = 0
8 assert.quiet_eval = 0
19 var_dump($r2=assert($sa));
21 var_dump($r2=assert($sa));
29 Warning: assert(): assert($sa): "0 != 0" failed in %s on line 10
H A Dassert_basic3.phpt2 assert() - basic - Test that bailout works
4 assert.active = 1
5 assert.warning = 1
6 assert.callback = f1
7 assert.quiet_eval = 1
8 assert.bail = 0
19 var_dump($r2=assert($sa));
25 Warning: assert(): assert($sa): "0 != 0" failed in %s on line 10
H A Dassert03.phpt2 assert() - set callback using ini_set()
4 assert.active = 1
5 assert.warning = 0
6 assert.callback =
7 assert.bail = 0
8 assert.quiet_eval = 1
28 assert('$a != 0');
31 ini_set("assert.callback", "b");
32 assert('$a != 0');
H A Dassert_basic6.phpt2 assert() - basic - Test that bailout works
4 assert.active = 1
5 assert.warning = 1
6 assert.callback = f1
7 assert.quiet_eval = 1
8 assert.bail = 0
19 var_dump($r2 = assert($sa, "0 is 0"));
25 Warning: assert(): 0 is 0: "0 != 0" failed in %s on line 10
H A Dassert_error1.phpt2 assert() - error - invalid params
4 assert.active = 1
5 assert.warning = 1
6 assert.callback = f1
7 assert.quiet_eval = 1
8 assert.bail = 0
17 assert(E_RECOVERABLE_ERROR === $errno);
29 //Wrong number of parameters for assert()
31 var_dump($r2 = assert($sa, "message", 1));
35 var_dump($rc = assert('aa=sd+as+safsafasfaçsafçsafç'));
[all …]
H A Dassert_error2.phpt2 assert() - basic - Test that bailout works
4 assert.active = 1
5 assert.warning = 1
6 assert.callback = f1
7 assert.quiet_eval = 1
8 assert.bail = 0
20 var_dump($r2 = assert("0 != 0"));
28 Warning: assert(): Assertion "0 != 0" failed in %s on line 9
H A Dassert_return_value.phpt2 assert() returns boolean on success or failure
5 assert.exception = 0
8 var_dump(assert(true));
9 var_dump(assert(false));
14 Warning: assert(): assert(false) failed in %s on line %d
/PHP-7.0/Zend/tests/assert/
H A Dexpect_018.phpt5 assert.exception=0
11 var_dump(\assert(false));
12 var_dump(\assert(true));
13 var_dump(assert(false));
14 var_dump(assert(true));
16 var_dump(\assert(false));
17 var_dump(\assert(true));
18 var_dump(assert(false));
19 var_dump(assert(true));
27 Warning: assert(): assert(false) failed in %sexpect_018.php on line 10
[all …]
H A Dbug70528.phpt2 Bug #70528 (assert() with instanceof adds apostrophes around class name)
5 assert.exception=0
6 assert.warning=1
14 assert(new \stdClass instanceof $bar);
15 assert(new \stdClass instanceof Bar);
16 assert(new \stdClass instanceof \Foo\Bar);
19 Warning: assert(): assert(new \stdClass() instanceof $bar) failed in %sbug70528.php on line %d
21 Warning: assert(): assert(new \stdClass() instanceof Bar) failed in %sbug70528.php on line %d
23 Warning: assert(): assert(new \stdClass() instanceof \Foo\Bar) failed in %sbug70528.php on line %d
H A Dexpect_008.phpt5 assert.exception=1
10 assert($this || 0);
20 assert(true, "constant message");
21 assert(($variable && $variable) || php_sapi_name(), new OdEar("constant message"));
22 assert(false);
23 assert(blah(), blah());
29 assert (blah() || blah() || blah(), blah() || blah() || blah() || blah());
H A Dexpect_016.phpt5 assert.exception=0
9 var_dump(assert(false));
10 var_dump(assert(true));
12 var_dump(assert(false));
13 var_dump(assert(true));
20 Warning: assert(): assert(false) failed in %sexpect_016.php on line 6
/PHP-7.0/ext/standard/
H A Dphp_assert.h24 PHP_MINIT_FUNCTION(assert);
25 PHP_MSHUTDOWN_FUNCTION(assert);
26 PHP_RINIT_FUNCTION(assert);
27 PHP_RSHUTDOWN_FUNCTION(assert);
28 PHP_MINFO_FUNCTION(assert);
29 PHP_FUNCTION(assert);
/PHP-7.0/Zend/tests/
H A Dexception_011.phpt4 assert.bail=1
5 assert.exception=1
10 assert(false);
16 Fatal error: Uncaught AssertionError: assert(false) in %sexception_011.php:%d
18 #0 %sexception_011.php(%d): assert(false, 'assert(false)')

Completed in 47 milliseconds

1234567