summaryrefslogtreecommitdiff
path: root/Zend/tests/div_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/div_002.phpt')
-rw-r--r--Zend/tests/div_002.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/tests/div_002.phpt b/Zend/tests/div_002.phpt
index 6ade1d9f51..b74743380c 100644
--- a/Zend/tests/div_002.phpt
+++ b/Zend/tests/div_002.phpt
@@ -6,10 +6,18 @@ dividing arrays
$a = array(1,2,3);
$b = array(1);
+try {
+ var_dump($a / $b);
+} catch (EngineException $e) {
+ echo "\nException: " . $e->getMessage() . "\n";
+}
+
$c = $a / $b;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
+Exception: Unsupported operand types
+
Fatal error: Unsupported operand types in %s on line %d