Home
last modified time | relevance | path

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

1234567

/PHP-5.5/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_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 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 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);
16 /* Wrong parameter count in assert */
18 assert(2, "failure", 3);
28 assert(0);
[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(): Assertion failed in %s on line 13
37 Warning: assert(): Assertion failed in %s on line 17
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
14 var_dump($r2 = assert($sa));
17 Parse error: syntax error, unexpected '$' in %s(3) : assert code on line 1
19 Catchable fatal error: assert(): Failure evaluating code:
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, unexpected '$' in %s(3) : assert code on line 1
19 Catchable fatal error: assert(): Failure evaluating code:
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_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(): Assertion "0 != 0" failed in %s on line 10
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(): Assertion failed in %s on line %d
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(): Assertion "0 != 0" failed in %s on line 10
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
21 var_dump($r2 = assert($sa));
29 Warning: assert(): Assertion "0 != 0" failed in %s on line 10
/PHP-5.5/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-5.5/ext/ereg/regex/
H A Dengine.c132 assert(m->coldp != NULL);
199 assert(start <= stop);
311 assert(dp == rest);
313 assert(sp == rest);
349 assert(dp == sep);
384 assert(dp == rest);
410 assert(sp == stop);
614 assert(PHP_REGEX_NOPE);
695 assert(c != OUT);
702 assert(coldp != NULL);
[all …]
/PHP-5.5/ext/dom/tests/
H A DDOMNode_insertBefore_error3.phpt10 assert.bail=true
18 assert('$doc === true');
21 assert('!is_null($parent_node)');
24 assert('$new_node !== false');
29 assert('!is_null($ref_node)');
H A DDOMNode_insertBefore_error6.phpt10 assert.bail=true
18 assert('$doc === true');
21 assert('!is_null($parent_node)');
25 assert('$new_node !== false');
/PHP-5.5/ext/pgsql/
H A Dmysql_users.php21 assert(is_resource($db));
40 assert(is_resource($db));
63 assert(is_resource($db));
/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_class_mysqli_properties_no_conn.phpt35 assert(@mysqli_get_client_info() === @$mysqli->client_info);
45 assert(@mysqli_errno($mysqli) === @$mysqli->errno);
51 assert(@mysqli_error($mysqli) === @$mysqli->error);
61 assert(@mysqli_insert_id($mysqli) === @$mysqli->insert_id);
66 assert(@mysqli_sqlstate($mysqli) === @$mysqli->sqlstate);
77 assert(@mysqli_info($mysqli) == @$mysqli->info);
82 assert(@mysqli_thread_id($mysqli) > @$mysqli->thread_id);
191 Warning: assert(): Assertion failed in %s on line %d
202 Warning: assert(): Assertion failed in %s on line %d
264 Warning: assert(): Assertion failed in %s on line %d
[all …]
/PHP-5.5/ext/sqlite3/libsqlite/
H A Dsqlite3.c20374 assert( p );
20402 assert( p );
20405 assert( p );
20425 assert( p );
20474 assert( p );
43481 assert(
44438 assert( 0 );
63142 assert(
69411 assert(p);
148479 assert(
[all …]

Completed in 522 milliseconds

1234567