1--TEST-- 2Test polygon method arguments 3--SKIPIF-- 4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> 5--FILE-- 6<?php 7 8$im = new Imagick(); 9$draw = new ImagickDraw(); 10 11try { 12 $draw->polygon(array( 13 array('x' => 1, 'y' => 2), 14 array('x' => 'hello', 'y' => array()) 15 )); 16 17 echo "pass\n"; 18 19} catch (Exception $e) { 20 echo "fail\n"; 21} 22 23try { 24 $draw->polygon(array(array())); 25 echo "fail\n"; 26} catch (ImagickDrawException $e) { 27 echo "pass\n"; 28} 29 30?> 31--EXPECTF-- 32pass 33pass