From 49b05498855dc2bdc3fa65d76f006b80b7587d08 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sun, 7 Oct 2012 21:36:47 +0100 Subject: [PATCH] Exception handling for chart render test --- Tests/35chartrender.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/35chartrender.php b/Tests/35chartrender.php index a2189b6..43bbc24 100644 --- a/Tests/35chartrender.php +++ b/Tests/35chartrender.php @@ -113,7 +113,11 @@ foreach($inputFileNames as $inputFileName) { if (file_exists($jpegFile)) { unlink($jpegFile); } - $chart->render($jpegFile); + try { + $chart->render($jpegFile); + } catch (Exception $e) { + echo 'Error rendering chart: ',$e->getMessage(); + } } } }