mirror of
https://github.com/Imagick/imagick.git
synced 2026-06-19 07:35:36 +00:00
6958c0160d
git-svn-id: http://svn.php.net/repository/pecl/imagick/trunk@289647 c90b9560-bf6c-de11-be94-00142212c4b1
18 lines
349 B
PHP
18 lines
349 B
PHP
--TEST--
|
|
Imagick::readImage test
|
|
--SKIPIF--
|
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
print "--- Catch exception with try/catch\n";
|
|
$imagick = new Imagick();
|
|
try {
|
|
$imagick->readImage('foo.jpg');
|
|
} catch (ImagickException $e) {
|
|
echo "got exception";
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
--- Catch exception with try/catch
|
|
got exception
|