summaryrefslogtreecommitdiff
path: root/Zend/tests/assert/expect_018.phpt
blob: 18c31bbae63a5c60f7e3d156202ef33f6888eac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--TEST--
test assertions in namespace
--INI--
zend.assertions=1
assert.exception=0
--FILE--
<?php
namespace Foo;

ini_set("zend.assertions", 0);
var_dump(\assert(false));
var_dump(\assert(true));
var_dump(assert(false));
var_dump(assert(true));
ini_set("zend.assertions", 1);
var_dump(\assert(false));
var_dump(\assert(true));
var_dump(assert(false));
var_dump(assert(true));
?>
--EXPECTF--
bool(true)
bool(true)
bool(true)
bool(true)

Warning: assert(): assert(false) failed in %sexpect_018.php on line 10
bool(false)
bool(true)

Warning: assert(): assert(false) failed in %sexpect_018.php on line 12
bool(false)
bool(true)