xref: /imagick/tests/021-countable.phpt (revision b939c105)
1--TEST--
2Test countable interface
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc');
5
6if (!extension_loaded ('spl'))
7	die ('skip SPL is needed');
8?>
9--FILE--
10<?php
11
12
13$imagick = new Imagick(array (
14						'magick:rose',
15						'magick:rose',
16						'magick:rose',
17));
18
19echo count ($imagick) . PHP_EOL;
20echo 'done' . PHP_EOL;
21?>
22--EXPECT--
233
24done