summaryrefslogtreecommitdiff
path: root/ext/standard/tests/assert/assert_error1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/assert/assert_error1.phpt')
-rw-r--r--ext/standard/tests/assert/assert_error1.phpt8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/standard/tests/assert/assert_error1.phpt b/ext/standard/tests/assert/assert_error1.phpt
index 55879e8427..a30356f9f7 100644
--- a/ext/standard/tests/assert/assert_error1.phpt
+++ b/ext/standard/tests/assert/assert_error1.phpt
@@ -4,7 +4,6 @@ assert() - error - invalid params
assert.active = 1
assert.warning = 1
assert.callback = f1
-assert.quiet_eval = 1
assert.bail = 0
--FILE--
<?php
@@ -22,10 +21,9 @@ var_dump($rao = assert_options(ASSERT_CALLBACK, "f1", 1));
var_dump($rao=assert_options("F1", "f1"));
//Wrong number of parameters for assert()
-$sa="0 != 0";
-var_dump($r2 = assert($sa, "message", 1));
+var_dump($r2 = assert(0 != 0, "message", 1));
-var_dump($rc = assert('aa=sd+as+safsafasfaçsafçsafç'));
+?>
--EXPECTF--
Warning: assert_options() expects at most 2 parameters, 3 given in %s on line %d
NULL
@@ -35,5 +33,3 @@ NULL
Warning: assert() expects at most 2 parameters, 3 given in %s on line %d
NULL
-
-Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d