File: 019-readimages.phpt

package info (click to toggle)
php-imagick 3.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,292 kB
  • sloc: ansic: 17,876; php: 1,440; xml: 444; pascal: 80; sh: 19; makefile: 2
file content (48 lines) | stat: -rw-r--r-- 937 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--TEST--
Imagick::readImages
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php

try {
	$imagick = new Imagick(array (
							'magick:rose',
							'magick:rose',
							'fail_this_does_not_exist.jpg',
							'magick:rose',
	));
	echo 'Fail'. PHP_EOL;
} catch (ImagickException $e) {
	echo 'OK construct exception' . PHP_EOL;
}

$imagick = new Imagick();
$imagick = new Imagick(array (
						'magick:rose',
						'magick:rose',
						'magick:rose',
));
echo 'OK construct' . PHP_EOL;
$imagick->readImages (array (
						'magick:rose',
						'magick:rose',
						'magick:rose',
));
echo 'OK readImages' . PHP_EOL;
try{
	$imagick->readImages (array (
							'magick:rose',
							'fail_this_does_not_exist.jpg',
	));	
	echo 'Fail' . PHP_EOL;
} catch (ImagickException $e) {
	echo 'OK readImages exception'. PHP_EOL;
}

?>
--EXPECT--
OK construct exception
OK construct
OK readImages
OK readImages exception