Skip to content

Commit a73433c

Browse files
committed
Helper file for GD functions
1 parent 85b17a0 commit a73433c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ext/gd/tests/test_helpers.inc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
function trycatch_dump(...$tests) {
4+
foreach ($tests as $test) {
5+
try {
6+
var_dump($test());
7+
}
8+
catch (\Error $e) {
9+
echo '!! [' . get_class($e) . '] ' . $e->getMessage() . "\n";
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)