--FILE--
<?php
-foreach (get_defined_functions()["internal"] as $function) {
+function test($function) {
try {
@$function(null, null, null, null, null, null, null, null);
- } catch (ArgumentCountError|Error) {
+ } catch (Throwable) {
+ }
+}
+
+foreach (get_defined_functions()["internal"] as $function) {
+ test($function);
+}
+
+foreach (get_declared_classes() as $class) {
+ try {
+ $rc = new ReflectionClass($class);
+ $obj = $rc->newInstanceWithoutConstructor();
+ } catch (Throwable) {
+ continue;
+ }
+
+ foreach (get_class_methods($class) as $method) {
+ test([$obj, $method]);
}
}