Home
last modified time | relevance | path

Searched refs:assert (Results 26 – 50 of 199) sorted by relevance

12345678

/php-src/Zend/tests/
H A Dgh8810_5.phpt2 GH-8810: Fix reported line number of multi-line assert call
6 assert(
12 Fatal error: Uncaught AssertionError: assert(false) in %s:3
14 #0 %s(3): assert(false, 'assert(false)')
H A Dbug71922.phpt2 Bug #71922: Crash on assert(new class{});
5 assert.exception=1
10 assert(0 && new class {
19 Assertion failure: assert(0 && new class {
H A Dexception_011.phpt9 assert(false);
15 Fatal error: Uncaught AssertionError: assert(false) in %sexception_011.php:%d
17 #0 %sexception_011.php(%d): assert(false, 'assert(false)')
H A Dcustom_assert_forbidden.phpt2 Defining a free-standing assert() function is deprecated
8 function assert() {}
12 Fatal error: Defining a custom assert() function is not allowed, as the function has special semant…
H A Dgh7900.phpt5 assert.exception=1
18 assert((fn(): never => 42) && false);
26 assert(fn(): never => 42 && false)
/php-src/Zend/tests/assert/
H A Dexpect_002.phpt5 assert.exception=1
8 assert(false);
12 Fatal error: Uncaught AssertionError: assert(false) in %sexpect_002.php:%d
14 #0 %sexpect_002.php(%d): assert(false, 'assert(false)')
H A Dexpect_009.phpt5 assert.exception=1
14 assert(false);
20 Fatal error: Uncaught AssertionError: assert(false) in %sexpect_009.php:%d
22 #0 %sexpect_009.php(%d): assert(false, 'assert(false)')
H A Dexpect_010.phpt5 assert.exception=1
10 assert(false);
18 Fatal error: Uncaught AssertionError: assert(false) in %sexpect_010.php:%d
20 #0 %sexpect_010.php(%d): assert(false, 'assert(false)')
H A Dexpect_019.phpt9 var_dump(\assert(false));
10 var_dump(\assert(true));
11 var_dump(assert(false));
12 var_dump(assert(true));
H A Dexpect_020.phpt8 assert(0 && ($a = function () {
13 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
17 assert(): assert(0 && ($a = function () {
H A Dexpect_003.phpt5 assert.exception=1
9 assert(false);
15 string(13) "assert(false)"
H A Dexpect_006.phpt2 test looping assert (pass)
5 assert.exception=1
9 assert ($i < 100000, "The universe should make sense");
H A Dexpect_012.phpt5 assert.exception=1
11 assert(false);
14 assert(true);
H A Dexpect_011.phpt5 assert.exception=1
17 assert(false, (string) new MyExpectations());
27 #0 %sexpect_011.php(%d): assert(false, '[Message]: MyEx...')
/php-src/Zend/tests/ast/
H A Dzend-pow-assign.phpt9 assert(false && ($a **= 2));
11 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
15 assert(): assert(false && ($a **= 2)) failed
H A Dast_serialize_backtick_literal.phpt9 assert(false && `echo -n ""`);
11 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
16 assert(): assert(false && `echo -n ""`) failed
/php-src/ext/standard/tests/assert/
H A Dassert_basic6.phpt2 assert() - Remove the assert callback
4 assert.active=1
17 assert(false);
28 assert(false);
44 assert(false)
55 assert(false)
H A Dassert_custom_exception.phpt2 Throwing custom exception object from assert() throws given object
5 assert.exception = 1
9 assert(false, new CustomException('Exception message'));
/php-src/Zend/tests/match/
H A D009_ast_export.phpt9 assert((function () {
17 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
22 assert(): assert(function () {
/php-src/tests/lang/
H A Dzend_throw_exception_001.phpt6 $assert = 'assert';
7 $assert(false);
/php-src/Zend/tests/type_declarations/
H A Dtypes_in_ast.phpt8 assert(0 && ($a = function (int $a, ?int $b, int $c = null): ?int {
16 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
20 assert(): assert(0 && ($a = function (int $a, ?int $b, int $c = null): ?int {
/php-src/ext/dom/tests/
H A DDOMNode_insertBefore_error3.phpt16 assert($doc === true);
19 assert(!is_null($parent_node));
22 assert($new_node !== false);
27 assert(!is_null($ref_node));
/php-src/ext/mysqli/tests/
H A Dmysqli_class_mysqli_interface.phpt162 assert(mysqli_get_client_info() === $mysqli->client_info);
172 assert(mysqli_errno($link) === $mysqli->errno);
177 assert(mysqli_error($link) === $mysqli->error);
182 assert(mysqli_error_list($link) === $mysqli->error_list);
183 assert(is_array($mysqli->error_list));
190 assert(mysqli_insert_id($link) === $mysqli->insert_id);
195 assert(mysqli_sqlstate($link) === $mysqli->sqlstate);
206 assert(mysqli_info($link) == $mysqli->info);
211 assert(mysqli_thread_id($link) > $mysqli->thread_id);
249 assert(mysqli_connect_error() === $mysqli->connect_error);
[all …]
H A Dmysqli_class_mysqli_stmt_interface.phpt97 assert(mysqli_stmt_affected_rows($stmt) === $stmt->affected_rows);
100 assert(mysqli_stmt_errno($stmt) === $stmt->errno);
103 assert(mysqli_stmt_error($stmt) === $stmt->error);
106 assert(mysqli_stmt_error_list($stmt) === $stmt->error_list);
109 assert(mysqli_stmt_field_count($stmt) === $stmt->field_count);
112 assert($stmt->id > 0);
115 assert(mysqli_stmt_insert_id($stmt) === $stmt->insert_id);
118 assert(mysqli_stmt_num_rows($stmt) === $stmt->num_rows);
121 assert(mysqli_stmt_param_count($stmt) === $stmt->param_count);
124 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate);
/php-src/ext/mbstring/libmbfl/mbfl/
H A Dgenerate_name_perfect_hash_table.php8 assert(isset($matches[1]));
77assert(isset($encoding_pointer_array_name_mapping[$encoding_pointer]), "Missing entry for $encodin…
94 assert(isset($matches[1]));
102 assert(isset($matches[1]));

Completed in 33 milliseconds

12345678