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--EXPECT-- 29Ok - ReflectionExtension::__construct() expects exactly 1 argument, 0 given 30Ok - ReflectionExtension::__construct() expects exactly 1 argument, 2 given 31Ok - ReflectionExtension::__construct(): Argument #1 ($name) must be of type string, array given 32