From c9881fde7ad7536c079a206cd33d4f96d7238214 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 17 Jul 2020 15:50:06 +0200 Subject: [PATCH] Run arginfo / zpp mismatch tests for methods as well As a side-effect, this also catches issues where classes are not prepared for use with newInstanceWithoutConstructor. --- Zend/tests/arginfo_zpp_mismatch.phpt | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Zend/tests/arginfo_zpp_mismatch.phpt b/Zend/tests/arginfo_zpp_mismatch.phpt index 9762dd5fce..39a1742743 100644 --- a/Zend/tests/arginfo_zpp_mismatch.phpt +++ b/Zend/tests/arginfo_zpp_mismatch.phpt @@ -3,10 +3,27 @@ Test that there is no arginfo/zpp mismatch --FILE-- newInstanceWithoutConstructor(); + } catch (Throwable) { + continue; + } + + foreach (get_class_methods($class) as $method) { + test([$obj, $method]); } } -- 2.50.1