@@ -89,16 +89,3 @@ |
||
89 | 89 | ClassWithMixedTypedProperties::class => [ |
90 | 90 | ClassWithMixedTypedProperties::class, |
91 | 91 | <<<'PHP' |
92 | -unset($bar->publicUnTypedProperty, $bar->publicUnTypedPropertyWithoutDefaultValue, $bar->publicBoolProperty, $bar->publicNullableBoolProperty, $bar->publicIntProperty, $bar->publicNullableIntProperty, $bar->publicFloatProperty, $bar->publicNullableFloatProperty, $bar->publicStringProperty, $bar->publicNullableStringProperty, $bar->publicArrayProperty, $bar->publicNullableArrayProperty, $bar->publicIterableProperty, $bar->publicNullableIterableProperty, $bar->protectedUnTypedProperty, $bar->protectedUnTypedPropertyWithoutDefaultValue, $bar->protectedBoolProperty, $bar->protectedNullableBoolProperty, $bar->protectedIntProperty, $bar->protectedNullableIntProperty, $bar->protectedFloatProperty, $bar->protectedNullableFloatProperty, $bar->protectedStringProperty, $bar->protectedNullableStringProperty, $bar->protectedArrayProperty, $bar->protectedNullableArrayProperty, $bar->protectedIterableProperty, $bar->protectedNullableIterableProperty); |
|
93 | - |
|
94 | -\Closure::bind(function (\ProxyManagerTestAsset\ClassWithMixedTypedProperties $instance) { |
|
95 | - unset($instance->privateUnTypedProperty, $instance->privateUnTypedPropertyWithoutDefaultValue, $instance->privateBoolProperty, $instance->privateNullableBoolProperty, $instance->privateIntProperty, $instance->privateNullableIntProperty, $instance->privateFloatProperty, $instance->privateNullableFloatProperty, $instance->privateStringProperty, $instance->privateNullableStringProperty, $instance->privateArrayProperty, $instance->privateNullableArrayProperty, $instance->privateIterableProperty, $instance->privateNullableIterableProperty); |
|
96 | -}, $bar, 'ProxyManagerTestAsset\\ClassWithMixedTypedProperties')->__invoke($bar); |
|
97 | - |
|
98 | - |
|
99 | -PHP, |
|
100 | - 'bar', |
|
101 | - ], |
|
102 | - ]; |
|
103 | - } |
|
104 | -} |
@@ -89,16 +89,3 @@ |
||
89 | 89 | ClassWithMixedTypedProperties::class => [ |
90 | 90 | ClassWithMixedTypedProperties::class, |
91 | 91 | <<<'PHP' |
92 | -unset($bar->publicUnTypedProperty, $bar->publicUnTypedPropertyWithoutDefaultValue, $bar->publicBoolProperty, $bar->publicNullableBoolProperty, $bar->publicIntProperty, $bar->publicNullableIntProperty, $bar->publicFloatProperty, $bar->publicNullableFloatProperty, $bar->publicStringProperty, $bar->publicNullableStringProperty, $bar->publicArrayProperty, $bar->publicNullableArrayProperty, $bar->publicIterableProperty, $bar->publicNullableIterableProperty, $bar->protectedUnTypedProperty, $bar->protectedUnTypedPropertyWithoutDefaultValue, $bar->protectedBoolProperty, $bar->protectedNullableBoolProperty, $bar->protectedIntProperty, $bar->protectedNullableIntProperty, $bar->protectedFloatProperty, $bar->protectedNullableFloatProperty, $bar->protectedStringProperty, $bar->protectedNullableStringProperty, $bar->protectedArrayProperty, $bar->protectedNullableArrayProperty, $bar->protectedIterableProperty, $bar->protectedNullableIterableProperty); |
|
93 | - |
|
94 | -\Closure::bind(function (\ProxyManagerTestAsset\ClassWithMixedTypedProperties $instance) { |
|
95 | - unset($instance->privateUnTypedProperty, $instance->privateUnTypedPropertyWithoutDefaultValue, $instance->privateBoolProperty, $instance->privateNullableBoolProperty, $instance->privateIntProperty, $instance->privateNullableIntProperty, $instance->privateFloatProperty, $instance->privateNullableFloatProperty, $instance->privateStringProperty, $instance->privateNullableStringProperty, $instance->privateArrayProperty, $instance->privateNullableArrayProperty, $instance->privateIterableProperty, $instance->privateNullableIterableProperty); |
|
96 | -}, $bar, 'ProxyManagerTestAsset\\ClassWithMixedTypedProperties')->__invoke($bar); |
|
97 | - |
|
98 | - |
|
99 | -PHP, |
|
100 | - 'bar', |
|
101 | - ], |
|
102 | - ]; |
|
103 | - } |
|
104 | -} |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace ProxyManagerTest\Factory\RemoteObject\Adapter; |
6 | 6 | |
7 | -use PHPUnit\Framework\MockObject\MockObject; |
|
8 | 7 | use PHPUnit\Framework\TestCase; |
9 | 8 | use ProxyManager\Factory\RemoteObject\Adapter\BaseAdapter; |
10 | 9 | use Zend\Server\Client; |
@@ -631,7 +631,7 @@ |
||
631 | 631 | } |
632 | 632 | |
633 | 633 | /** |
634 | - * @param mixed $expected |
|
634 | + * @param string $expected |
|
635 | 635 | * @param mixed $actual |
636 | 636 | */ |
637 | 637 | private static function assertByRefVariableValueSame($expected, & $actual) : void |
@@ -872,6 +872,7 @@ |
||
872 | 872 | * array $params, |
873 | 873 | * ?Closure $initializer |
874 | 874 | * ) : bool |
875 | + * @param Mock $initializerMatcher |
|
875 | 876 | */ |
876 | 877 | private function createInitializer(string $className, object $realInstance, ?Mock $initializerMatcher = null) : Closure |
877 | 878 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace ProxyManagerTest\Generator\Util; |
6 | 6 | |
7 | -use PHPUnit\Framework\MockObject\MockObject; |
|
8 | 7 | use PHPUnit\Framework\TestCase; |
9 | 8 | use ProxyManager\Generator\Util\ClassGeneratorUtils; |
10 | 9 | use ProxyManagerTestAsset\BaseClass; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace ProxyManagerTest\ProxyGenerator\AccessInterceptor\MethodGenerator; |
6 | 6 | |
7 | -use PHPUnit\Framework\MockObject\MockObject; |
|
8 | 7 | use PHPUnit\Framework\TestCase; |
9 | 8 | use ProxyManager\ProxyGenerator\AccessInterceptor\MethodGenerator\SetMethodPrefixInterceptor; |
10 | 9 | use Zend\Code\Generator\PropertyGenerator; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace ProxyManagerTest\ProxyGenerator\AccessInterceptor\MethodGenerator; |
6 | 6 | |
7 | -use PHPUnit\Framework\MockObject\MockObject; |
|
8 | 7 | use PHPUnit\Framework\TestCase; |
9 | 8 | use ProxyManager\ProxyGenerator\AccessInterceptor\MethodGenerator\SetMethodSuffixInterceptor; |
10 | 9 | use Zend\Code\Generator\PropertyGenerator; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace ProxyManagerTest\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator; |
6 | 6 | |
7 | -use PHPUnit\Framework\MockObject\MockObject; |
|
8 | 7 | use PHPUnit\Framework\TestCase; |
9 | 8 | use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicClone; |
10 | 9 | use ProxyManagerTestAsset\ClassWithMagicMethods; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace ProxyManagerTest\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator; |
6 | 6 | |
7 | -use PHPUnit\Framework\MockObject\MockObject; |
|
8 | 7 | use PHPUnit\Framework\TestCase; |
9 | 8 | use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicGet; |
10 | 9 | use ProxyManagerTestAsset\ClassWithMagicMethods; |