mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
20 lines
306 B
PHP
20 lines
306 B
PHP
--TEST--
|
|
test assertions in namespace (assertions completely disabled)
|
|
--INI--
|
|
zend.assertions=-1
|
|
assert.exception=0
|
|
--FILE--
|
|
<?php
|
|
namespace Foo;
|
|
|
|
var_dump(\assert(false));
|
|
var_dump(\assert(true));
|
|
var_dump(assert(false));
|
|
var_dump(assert(true));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|