Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 199) sorted by path

12345678

/php-src/TSRM/
H A DTSRM.c22 # define TSRM_ASSERT(c) assert(c)
/php-src/Zend/tests/arrow_functions/
H A D007.phpt11 assert((fn() => false)());
13 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
17 assert((fn&(int... $args): ?bool => $args[0])(false));
19 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
24 assert(): assert(fn() => false()) failed
25 assert(): assert(fn&(int ...$args): ?bool => $args[0](false)) failed
/php-src/Zend/tests/assert/
H A Dbug70528.phpt2 Bug #70528 (assert() with instanceof adds apostrophes around class name)
13 assert(new \stdClass instanceof $bar);
15 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
18 assert(new \stdClass instanceof Bar);
20 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
23 assert(new \stdClass instanceof \Foo\Bar);
25 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
29 assert(): assert(new \stdClass() instanceof $bar) failed
30 assert(): assert(new \stdClass() instanceof Bar) failed
31 assert(): assert(new \stdClass() instanceof \Foo\Bar) failed
H A Dexpect_001.phpt5 assert.exception=1
8 assert(true);
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_003.phpt5 assert.exception=1
9 assert(false);
15 string(13) "assert(false)"
H A Dexpect_004.phpt5 assert.exception=1
9 assert(false, "I require this to succeed");
H A Dexpect_005.phpt5 assert.exception=1
10 assert(true, "I require this to succeed");
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_007.phpt5 assert.exception=1
16 assert (preg_match("~^([a-zA-Z0-9-]+)$~", $data["key"]), new HeaderMalfunctionError("malformed key …
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_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_011.phpt5 assert.exception=1
17 assert(false, (string) new MyExpectations());
27 #0 %sexpect_011.php(%d): assert(false, '[Message]: MyEx...')
H A Dexpect_012.phpt5 assert.exception=1
11 assert(false);
14 assert(true);
H A Dexpect_013.phpt5 assert.exception=1
8 var_dump(assert(false));
H A Dexpect_014.phpt5 assert.exception=1
8 assert(false);
H A Dexpect_015.phpt8 assert(0 && ($a = function () {
27 assert(0 && ($a = function &(array &$a, ?X $b = null) use ($c,&$d) : ?X {
76 assert(0 && ($a = function &(array &$a, X $b = null, int|float $c) use ($c,&$d) : X {
112 assert(0 && ($a = function &(?array &$a, X $b = null) use ($c,&$d) : X {
128 assert(0 && ($a = function &(array &...$a) {
145 assert(0 && ($a = function (): ?static {
174 assert(0 && ($a = function () {
190 assert(0 && ($a = function &(array &$a, ?X $b = null) use($c, &$d): ?X {
273 assert(0 && ($a = function &(?array &$a, X $b = null) use($c, &$d): X {
285 assert(0 && ($a = function &(array &...$a) {
[all …]
H A Dexpect_016.phpt8 var_dump(assert(false));
9 var_dump(assert(true));
12 var_dump(assert(false));
14 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
16 var_dump(assert(true));
22 assert(): assert(false) failed
H A Dexpect_017.phpt8 var_dump(assert(false));
9 var_dump(assert(true));
H A Dexpect_018.phpt10 var_dump(\assert(false));
11 var_dump(\assert(true));
12 var_dump(assert(false));
13 var_dump(assert(true));
16 var_dump(\assert(false));
18 echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
20 var_dump(\assert(true));
22 var_dump(assert(false));
26 var_dump(assert(true));
33 assert(): assert(false) failed
[all …]
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_empty_stmt_bug.phpt2 Empty statement in assert() shouldn't segfault
6 assert((function () { return true; })());
/php-src/Zend/tests/ast/
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

Completed in 49 milliseconds

12345678