xref: /imagick/tests/013-read-filehandle.phpt (revision edb6f41a)
1--TEST--
2Imagick::readImageFile test
3--SKIPIF--
4<?php
5	require_once(dirname(__FILE__) . '/skipif.inc');
6	checkFormatPresent('jpg');
7?>
8--FILE--
9<?php
10
11$file = dirname(__FILE__) . '/__tmp_rose.jpg';
12
13$imagick = new Imagick('magick:rose');
14$imagick->setImageFormat('jpg');
15$imagick->writeImage($file);
16
17$imagick->clear();
18
19$handle = fopen($file, 'rb');
20$imagick->readImageFile($handle);
21
22unlink($file);
23
24echo 'success';
25
26?>
27--EXPECT--
28success