From 06d9f51c1ee7191ee577f270ee41e8f24ba960de Mon Sep 17 00:00:00 2001 From: Michael Moravec Date: Mon, 3 Sep 2018 19:13:23 +0200 Subject: [PATCH] Crashing test assets for magic methods with types/void --- .../MultipleProxyGenerationTest.php | 4 ++ .../ClassWithTypedMagicMethods.php | 39 +++++++++++++++++++ .../ClassWithVoidReturningMethods.php | 35 +++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 tests/ProxyManagerTestAsset/ClassWithTypedMagicMethods.php create mode 100644 tests/ProxyManagerTestAsset/ClassWithVoidReturningMethods.php diff --git a/tests/ProxyManagerTest/Functional/MultipleProxyGenerationTest.php b/tests/ProxyManagerTest/Functional/MultipleProxyGenerationTest.php index fc9d9aabd..be5cfc0b2 100644 --- a/tests/ProxyManagerTest/Functional/MultipleProxyGenerationTest.php +++ b/tests/ProxyManagerTest/Functional/MultipleProxyGenerationTest.php @@ -27,6 +27,8 @@ use ProxyManagerTestAsset\ClassWithProtectedProperties; use ProxyManagerTestAsset\ClassWithPublicProperties; use ProxyManagerTestAsset\ClassWithSelfHint; +use ProxyManagerTestAsset\ClassWithTypedMagicMethods; +use ProxyManagerTestAsset\ClassWithVoidReturningMethods; use ProxyManagerTestAsset\EmptyClass; use ProxyManagerTestAsset\HydratedObject; use ProxyManagerTestAsset\IterableTypeHintClass; @@ -115,6 +117,8 @@ public function getTestedClasses() : array [ClassWithCollidingPrivateInheritedProperties::class], [ClassWithMethodWithVariadicFunction::class], [ClassWithMethodWithByRefVariadicFunction::class], + [ClassWithVoidReturningMethods::class], + [ClassWithTypedMagicMethods::class], [ScalarTypeHintedClass::class], [IterableTypeHintClass::class], [ObjectTypeHintClass::class], diff --git a/tests/ProxyManagerTestAsset/ClassWithTypedMagicMethods.php b/tests/ProxyManagerTestAsset/ClassWithTypedMagicMethods.php new file mode 100644 index 000000000..f69247b38 --- /dev/null +++ b/tests/ProxyManagerTestAsset/ClassWithTypedMagicMethods.php @@ -0,0 +1,39 @@ +