1--TEST-- 2ReflectionExtension::__construct() 3--CREDITS-- 4Gerrit "Remi" te Sligte <remi@wolerized.com> 5Leon Luijkx <leon@phpgg.nl> 6--FILE-- 7<?php 8try { 9 $obj = new ReflectionExtension(); 10} catch (TypeError $re) { 11 echo "Ok - ".$re->getMessage().PHP_EOL; 12} 13 14try { 15 $obj = new ReflectionExtension('foo', 'bar'); 16} catch (TypeError $re) { 17 echo "Ok - ".$re->getMessage().PHP_EOL; 18} 19 20try { 21 $obj = new ReflectionExtension([]); 22} catch (TypeError $re) { 23 echo "Ok - ".$re->getMessage().PHP_EOL; 24} 25 26 27?> 28==DONE== 29--EXPECTF-- 30Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given 31Ok - ReflectionExtension::__construct() expects exactly %d parameter, %d given 32Ok - ReflectionExtension::__construct() expects parameter 1 to be string, array given 33==DONE== 34