summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/dirname_multi.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/strings/dirname_multi.phpt')
-rw-r--r--ext/standard/tests/strings/dirname_multi.phpt6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/standard/tests/strings/dirname_multi.phpt b/ext/standard/tests/strings/dirname_multi.phpt
index f95bf16d2a..eb29de39a2 100644
--- a/ext/standard/tests/strings/dirname_multi.phpt
+++ b/ext/standard/tests/strings/dirname_multi.phpt
@@ -13,18 +13,16 @@ if((substr(PHP_OS, 0, 3) == "WIN"))
for ($i=0 ; $i<5 ; $i++) {
try {
var_dump(dirname("/foo/bar/baz", $i));
- } catch (\Error $e) {
+ } catch (\ValueError $e) {
echo $e->getMessage() . "\n";
}
}
var_dump(dirname("/foo/bar/baz", PHP_INT_MAX));
?>
-Done
---EXPECTF--
+--EXPECT--
Invalid argument, levels must be >= 1
string(8) "/foo/bar"
string(4) "/foo"
string(1) "/"
string(1) "/"
string(1) "/"
-Done