Skip to content

Commit 817d21e

Browse files
committed
Fix deprecation warnings in tests
1 parent 94bd6ca commit 817d21e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Zend/tests/gh16293_001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ GH-16293: Exception in assert() callback with bail enabled
33
--FILE--
44
<?php
55

6-
assert_options(ASSERT_EXCEPTION, 0);
7-
assert_options(ASSERT_BAIL, 1);
8-
assert_options(ASSERT_CALLBACK, 'f1');
6+
@assert_options(ASSERT_EXCEPTION, 0);
7+
@assert_options(ASSERT_BAIL, 1);
8+
@assert_options(ASSERT_CALLBACK, 'f1');
99
assert(false);
1010

1111
?>

Zend/tests/gh16293_002.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ GH-16293: Exception in assert() callback with bail enabled
33
--FILE--
44
<?php
55

6-
assert_options(ASSERT_EXCEPTION, 0);
7-
assert_options(ASSERT_BAIL, 1);
8-
assert_options(ASSERT_CALLBACK, function () {
6+
@assert_options(ASSERT_EXCEPTION, 0);
7+
@assert_options(ASSERT_BAIL, 1);
8+
@assert_options(ASSERT_CALLBACK, function () {
99
throw new Exception('Boo');
1010
});
1111
assert(false);

0 commit comments

Comments
 (0)