Searched refs:assert (Results 1 – 25 of 174) sorted by relevance
1234567
/PHP-7.0/ext/standard/tests/assert/ |
H A D | assert02.phpt | 2 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 D | assert_basic.phpt | 2 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 D | assert_basic1.phpt | 2 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 D | assert_variation.phpt | 4 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 D | assert_basic2.phpt | 2 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 D | assert_basic4.phpt | 4 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 D | assert04.phpt | 2 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 D | assert.phpt | 2 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 D | assert_error.phpt | 2 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 D | assert_error3.phpt | 2 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 D | assert_closures.phpt | 2 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 D | assert_error4.phpt | 2 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 D | assert_basic5.phpt | 2 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 D | assert_basic3.phpt | 2 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 D | assert03.phpt | 2 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 D | assert_basic6.phpt | 2 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 D | assert_error1.phpt | 2 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 D | assert_error2.phpt | 2 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 D | assert_return_value.phpt | 2 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 D | expect_018.phpt | 5 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 D | bug70528.phpt | 2 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 D | expect_008.phpt | 5 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 D | expect_016.phpt | 5 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 D | php_assert.h | 24 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 D | exception_011.phpt | 4 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