mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
15 lines
232 B
PHP
15 lines
232 B
PHP
--TEST--
|
|
test catching failed assertion
|
|
--INI--
|
|
zend.assertions=1
|
|
assert.exception=1
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
assert(false);
|
|
} catch (AssertionError $ex) {
|
|
var_dump($ex->getMessage());
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
string(13) "assert(false)"
|