diff options
| author | kkadosh | 2018-03-15 10:03:37 +0000 |
|---|---|---|
| committer | jvoisin | 2018-03-15 11:03:37 +0100 |
| commit | 927dc8558c7f33dea1179174a3be8297a375dc55 (patch) | |
| tree | f4802e347087ecaad4ed9bfa8c9ea857b9f1fcad /src/tests/disabled_functions_ret3.phpt | |
| parent | cba2c980e7485838831061287aa78eb989290d1c (diff) | |
Change a test to expected failed
Apparently, we're not supporting hooking on `ret` for user-defined functions.
Diffstat (limited to 'src/tests/disabled_functions_ret3.phpt')
| -rw-r--r-- | src/tests/disabled_functions_ret3.phpt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tests/disabled_functions_ret3.phpt b/src/tests/disabled_functions_ret3.phpt index a705333..6a91e23 100644 --- a/src/tests/disabled_functions_ret3.phpt +++ b/src/tests/disabled_functions_ret3.phpt | |||
| @@ -10,7 +10,7 @@ memory_limit=-1 | |||
| 10 | class Bob { | 10 | class Bob { |
| 11 | function a() { | 11 | function a() { |
| 12 | echo("We're in function `a`.\n"); | 12 | echo("We're in function `a`.\n"); |
| 13 | return 1; | 13 | return 2; |
| 14 | } | 14 | } |
| 15 | } | 15 | } |
| 16 | $b = new Bob(); | 16 | $b = new Bob(); |
| @@ -19,5 +19,6 @@ echo("We're at the end of the execution.\n"); | |||
| 19 | ?> | 19 | ?> |
| 20 | --EXPECTF-- | 20 | --EXPECTF-- |
| 21 | We're in function `a`. | 21 | We're in function `a`. |
| 22 | `a` returned: 1. | 22 | [snuffleupagus][0.0.0.0][disabled_function][drop] The execution has been aborted in %a/disabled_functions_ret3.php:9, because the return value (2) of the function 'Bob::a' matched a rule. |
| 23 | We're at the end of the execution. \ No newline at end of file | 23 | --XFAIL-- |
| 24 | Match on ret is broken for non-native functions :/ | ||
