From 50d0f997c681e8c27ee0702a2c756983bcc104e1 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 12 Jul 2023 14:21:26 +0000 Subject: [PATCH] Updated Rector to commit 293913662e1372aae24a5069a753e38475116b8e https://github.com/rectorphp/rector-src/commit/293913662e1372aae24a5069a753e38475116b8e [Performance] Only set Attribute on context inside ArrayDimFetch and ArrayItem on specific node used (#4493) --- .../Scope/NodeVisitor/ContextNodeVisitor.php | 26 ++++++- src/Application/VersionResolver.php | 4 +- vendor/autoload.php | 2 +- vendor/composer/autoload_classmap.php | 10 +-- vendor/composer/autoload_real.php | 10 +-- vendor/composer/autoload_static.php | 18 ++--- vendor/composer/installed.json | 16 ++--- vendor/composer/installed.php | 2 +- .../src/GeneratedConfig.php | 2 +- .../PropertyTypeManipulator.php | 1 - ...tationToNamedArgumentConstructorRector.php | 1 - .../config/sets/phpunit-code-quality.php | 47 ++++++++++++- .../config/sets/phpunit-exception.php | 9 +-- .../config/sets/phpunit-specific-method.php | 14 +--- .../rector-phpunit/config/sets/phpunit60.php | 13 ++-- .../rector-phpunit/config/sets/phpunit70.php | 3 +- .../rector-phpunit/config/sets/phpunit80.php | 1 - .../config/sets/remove-mocks.php | 20 +----- vendor/rector/rector-phpunit/easy-ci.php | 2 +- vendor/rector/rector-phpunit/rector.php | 9 +-- ...mAssertionToNonAssertingTestRectorTest.php | 23 +++++++ .../Fixture/fixture.php.inc | 30 +++++++++ .../Fixture/keep_assert.php.inc | 18 +++++ .../Fixture/keep_assert_in_call.php.inc | 16 +++++ .../keep_assert_in_static_call.php.inc | 18 +++++ .../Fixture/keep_expected_exception.php.inc | 26 +++++++ .../Fixture/keep_non_public.php.inc | 10 +++ .../Fixture/keep_non_test.php.inc | 10 +++ ...keep_with_mulitiple_function_calls.php.inc | 45 +++++++++++++ .../keep_with_parent_method_assert.php.inc | 13 ++++ ...p_with_parent_method_static_assert.php.inc | 13 ++++ .../Fixture/prophecy_assertions.php.inc | 25 +++++++ .../Fixture/skipMockery_test.php.inc | 15 +++++ .../Fixture/skip_abstract_method.php.inc | 12 ++++ ...tributed_doesnot_perform_assertion.php.inc | 12 ++++ .../Fixture/skip_call_after_mock.php.inc | 19 ++++++ ..._to_perform_assertions_method_call.php.inc | 17 +++++ .../Fixture/skip_call_on_mock.php.inc | 17 +++++ .../skip_call_on_mock_property.php.inc | 23 +++++++ .../Fixture/skip_do_test_file_info.php.inc | 27 ++++++++ .../Fixture/skip_existing_annotation.php.inc | 13 ++++ .../Fixture/skip_expect_output.php.inc | 20 ++++++ .../Fixture/skip_expects.php.inc | 20 ++++++ ...kip_method_call_with_mock_property.php.inc | 25 +++++++ .../Fixture/skip_mock_expectations.php.inc | 32 +++++++++ .../Fixture/skip_prophecy_should.php.inc | 48 +++++++++++++ .../Fixture/test_in_annotation.php.inc | 34 ++++++++++ .../Source/AbstractClassWithAssert.php | 17 +++++ .../Source/AbstractClassWithStaticAssert.php | 17 +++++ .../Source/CacheAdapter.php | 20 ++++++ .../Source/CacheInterface.php | 10 +++ .../Source/Denormalizer.php | 24 +++++++ .../Source/DenormalizerInterface.php | 19 ++++++ .../Source/Factory.php | 11 +++ .../Source/SomeUser.php | 8 +++ .../config/configured_rule.php | 11 +++ .../ExceptionAnnotationRectorTest.php | 23 +++++++ .../Fixture/constant_code.php.inc | 35 ++++++++++ .../Fixture/fixture.php.inc | 33 +++++++++ .../Fixture/fixture2.php.inc | 37 ++++++++++ .../Fixture/fixture3.php.inc | 29 ++++++++ .../Fixture/fixture4.php.inc | 63 +++++++++++++++++ .../Fixture/fixture5.php.inc | 37 ++++++++++ .../Fixture/fixture6.php.inc | 37 ++++++++++ .../skip_method_with_null_php_doc.php.inc | 21 ++++++ .../Source/SomeConstant.php | 12 ++++ .../config/configured_rule.php | 11 +++ .../DelegateExceptionArgumentsRectorTest.php | 23 +++++++ .../Fixture/bare_method_rename.php.inc | 27 ++++++++ .../Fixture/message.php.inc | 28 ++++++++ .../Fixture/message_with_code.php.inc | 29 ++++++++ .../Fixture/regexp.php.inc | 24 +++++++ .../Fixture/self_nested.php.inc | 37 ++++++++++ .../config/configured_rule.php | 11 +++ .../Fixture/fixture.php.inc | 32 +++++++++ .../Fixture/get_mock_only.php.inc | 28 ++++++++ .../Fixture/skip_set_methods.php.inc | 16 +++++ ...ckBuilderGetMockToCreateMockRectorTest.php | 23 +++++++ .../config/configured_rule.php | 11 +++ .../Fixture/fixture.php.inc | 43 ++++++++++++ .../Fixture/multiple_data_providers.php.inc | 67 +++++++++++++++++++ .../Fixture/with_test_annotation.php.inc | 45 +++++++++++++ ...RemoveDataProviderTestPrefixRectorTest.php | 23 +++++++ .../config/configured_rule.php | 11 +++ ...rformAssertionToNonAssertingTestRector.php | 4 +- .../ClassMethod/ExceptionAnnotationRector.php | 10 ++- .../DelegateExceptionArgumentsRector.php | 4 +- ...etMockBuilderGetMockToCreateMockRector.php | 4 +- .../RemoveDataProviderTestPrefixRector.php | 4 +- .../rector-phpunit/src/Set/PHPUnitSetList.php | 3 + 90 files changed, 1668 insertions(+), 105 deletions(-) create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/AddDoesNotPerformAssertionToNonAssertingTestRectorTest.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/fixture.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert_in_call.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert_in_static_call.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_expected_exception.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_non_public.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_non_test.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_mulitiple_function_calls.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_parent_method_assert.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_parent_method_static_assert.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/prophecy_assertions.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skipMockery_test.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_abstract_method.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_already_attributed_doesnot_perform_assertion.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_after_mock.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_expect_not_to_perform_assertions_method_call.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_on_mock.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_on_mock_property.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_do_test_file_info.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_existing_annotation.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_expect_output.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_expects.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_method_call_with_mock_property.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_mock_expectations.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_prophecy_should.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/test_in_annotation.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/AbstractClassWithAssert.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/AbstractClassWithStaticAssert.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/CacheAdapter.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/CacheInterface.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/Denormalizer.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/DenormalizerInterface.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/Factory.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/SomeUser.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/config/configured_rule.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/ExceptionAnnotationRectorTest.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/constant_code.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture2.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture3.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture4.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture5.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture6.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/skip_method_with_null_php_doc.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Source/SomeConstant.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/config/configured_rule.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/DelegateExceptionArgumentsRectorTest.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/bare_method_rename.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/message.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/message_with_code.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/regexp.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/self_nested.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/config/configured_rule.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/fixture.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/get_mock_only.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/skip_set_methods.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/GetMockBuilderGetMockToCreateMockRectorTest.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/config/configured_rule.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/fixture.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/multiple_data_providers.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/with_test_annotation.php.inc create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/RemoveDataProviderTestPrefixRectorTest.php create mode 100644 vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/config/configured_rule.php rename vendor/rector/rector-phpunit/{src => rules/PHPUnit60}/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php (94%) rename vendor/rector/rector-phpunit/{src => rules/PHPUnit60}/Rector/ClassMethod/ExceptionAnnotationRector.php (89%) rename vendor/rector/rector-phpunit/{src => rules/PHPUnit60}/Rector/MethodCall/DelegateExceptionArgumentsRector.php (95%) rename vendor/rector/rector-phpunit/{src => rules/PHPUnit60}/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector.php (92%) rename vendor/rector/rector-phpunit/{src => rules/PHPUnit70}/Rector/Class_/RemoveDataProviderTestPrefixRector.php (94%) diff --git a/packages/NodeTypeResolver/PHPStan/Scope/NodeVisitor/ContextNodeVisitor.php b/packages/NodeTypeResolver/PHPStan/Scope/NodeVisitor/ContextNodeVisitor.php index d097dd966c6..82500aae11b 100644 --- a/packages/NodeTypeResolver/PHPStan/Scope/NodeVisitor/ContextNodeVisitor.php +++ b/packages/NodeTypeResolver/PHPStan/Scope/NodeVisitor/ContextNodeVisitor.php @@ -12,6 +12,9 @@ use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\ArrayItem; use PhpParser\Node\Expr\Closure; use PhpParser\Node\Expr\Isset_; +use PhpParser\Node\Expr\Match_; +use PhpParser\Node\Expr\PropertyFetch; +use PhpParser\Node\Expr\StaticPropertyFetch; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Param; @@ -43,6 +46,18 @@ final class ContextNodeVisitor extends NodeVisitorAbstract implements ScopeResol { $this->simpleCallableNodeTraverser = $simpleCallableNodeTraverser; } + private function processInsideArrayDimFetch(ArrayDimFetch $arrayDimFetch) : void + { + if ($arrayDimFetch->var instanceof PropertyFetch || $arrayDimFetch->var instanceof StaticPropertyFetch) { + $arrayDimFetch->var->setAttribute(AttributeKey::INSIDE_ARRAY_DIM_FETCH, \true); + } + } + private function processInsideArrayItem(ArrayItem $arrayItem) : void + { + if ($arrayItem->value instanceof Match_) { + $arrayItem->value->setAttribute(AttributeKey::INSIDE_ARRAY_ITEM, \true); + } + } public function enterNode(Node $node) : ?Node { if ($node instanceof For_ || $node instanceof Foreach_ || $node instanceof While_ || $node instanceof Do_) { @@ -50,10 +65,12 @@ final class ContextNodeVisitor extends NodeVisitorAbstract implements ScopeResol return null; } if ($node instanceof ArrayDimFetch) { - $node->var->setAttribute(AttributeKey::INSIDE_ARRAY_DIM_FETCH, \true); + $this->processInsideArrayDimFetch($node); + return null; } - if ($node instanceof ArrayItem) { - $node->value->setAttribute(AttributeKey::INSIDE_ARRAY_ITEM, \true); + if ($node instanceof ArrayItem && $node->value instanceof Match_) { + $this->processInsideArrayItem($node); + return null; } if ($node instanceof Isset_ || $node instanceof Unset_) { $this->processContextInIssetOrUnset($node); @@ -69,12 +86,15 @@ final class ContextNodeVisitor extends NodeVisitorAbstract implements ScopeResol } if ($node instanceof Return_ && $node->expr instanceof Expr) { $node->expr->setAttribute(AttributeKey::IS_RETURN_EXPR, \true); + return null; } if ($node instanceof Arg) { $node->value->setAttribute(AttributeKey::IS_ARG_VALUE, \true); + return null; } if ($node instanceof Param) { $node->var->setAttribute(AttributeKey::IS_PARAM_VAR, \true); + return null; } $this->processContextInClass($node); return null; diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 8cb234461a9..f233d3f8ae6 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '706be908c5d96381785128ad94cc608814aa0f35'; + public const PACKAGE_VERSION = '293913662e1372aae24a5069a753e38475116b8e'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-07-12 12:40:44'; + public const RELEASE_DATE = '2023-07-12 21:16:11'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index ed7a2bf326f..20975a0841b 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit403e9b3e175b446d3efee98eeb37d45c::getLoader(); +return ComposerAutoloaderInite107dc494ece1872275e224229f3a009::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 3d1ed6b4e76..896dd5395d3 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -2108,13 +2108,16 @@ return array( 'Rector\\PHPUnit\\NodeFactory\\ExpectExceptionMethodCallFactory' => $vendorDir . '/rector/rector-phpunit/src/NodeFactory/ExpectExceptionMethodCallFactory.php', 'Rector\\PHPUnit\\NodeFinder\\DataProviderClassMethodFinder' => $vendorDir . '/rector/rector-phpunit/src/NodeFinder/DataProviderClassMethodFinder.php', 'Rector\\PHPUnit\\PHPUnit50\\Rector\\StaticCall\\GetMockRector' => $vendorDir . '/rector/rector-phpunit/rules/PHPUnit50/Rector/StaticCall/GetMockRector.php', + 'Rector\\PHPUnit\\PHPUnit60\\Rector\\ClassMethod\\AddDoesNotPerformAssertionToNonAssertingTestRector' => $vendorDir . '/rector/rector-phpunit/rules/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php', + 'Rector\\PHPUnit\\PHPUnit60\\Rector\\ClassMethod\\ExceptionAnnotationRector' => $vendorDir . '/rector/rector-phpunit/rules/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector.php', + 'Rector\\PHPUnit\\PHPUnit60\\Rector\\MethodCall\\DelegateExceptionArgumentsRector' => $vendorDir . '/rector/rector-phpunit/rules/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector.php', + 'Rector\\PHPUnit\\PHPUnit60\\Rector\\MethodCall\\GetMockBuilderGetMockToCreateMockRector' => $vendorDir . '/rector/rector-phpunit/rules/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector.php', + 'Rector\\PHPUnit\\PHPUnit70\\Rector\\Class_\\RemoveDataProviderTestPrefixRector' => $vendorDir . '/rector/rector-phpunit/rules/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector.php', 'Rector\\PHPUnit\\PhpDoc\\DataProviderMethodRenamer' => $vendorDir . '/rector/rector-phpunit/src/PhpDoc/DataProviderMethodRenamer.php', 'Rector\\PHPUnit\\PhpDoc\\PhpDocValueToNodeMapper' => $vendorDir . '/rector/rector-phpunit/src/PhpDoc/PhpDocValueToNodeMapper.php', - 'Rector\\PHPUnit\\Rector\\ClassMethod\\AddDoesNotPerformAssertionToNonAssertingTestRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\CreateMockToAnonymousClassRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/ClassMethod/CreateMockToAnonymousClassRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\DataProviderAnnotationToAttributeRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/ClassMethod/DataProviderAnnotationToAttributeRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\DependsAnnotationWithValueToAttributeRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/ClassMethod/DependsAnnotationWithValueToAttributeRector.php', - 'Rector\\PHPUnit\\Rector\\ClassMethod\\ExceptionAnnotationRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/ClassMethod/ExceptionAnnotationRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\RemoveEmptyTestMethodRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/ClassMethod/RemoveEmptyTestMethodRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\ReplaceTestAnnotationWithPrefixedFunctionRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/ClassMethod/ReplaceTestAnnotationWithPrefixedFunctionRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\TryCatchToExpectExceptionRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/ClassMethod/TryCatchToExpectExceptionRector.php', @@ -2127,7 +2130,6 @@ return array( 'Rector\\PHPUnit\\Rector\\Class_\\PreferPHPUnitSelfCallRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/Class_/PreferPHPUnitSelfCallRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\PreferPHPUnitThisCallRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/Class_/PreferPHPUnitThisCallRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\ProphecyPHPDocRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/Class_/ProphecyPHPDocRector.php', - 'Rector\\PHPUnit\\Rector\\Class_\\RemoveDataProviderTestPrefixRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/Class_/RemoveDataProviderTestPrefixRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\StaticDataProviderClassMethodRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/Class_/StaticDataProviderClassMethodRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\TestListenerToHooksRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/Class_/TestListenerToHooksRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\YieldDataProviderRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/Class_/YieldDataProviderRector.php', @@ -2147,9 +2149,7 @@ return array( 'Rector\\PHPUnit\\Rector\\MethodCall\\AssertSameTrueFalseToAssertTrueFalseRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/AssertSameTrueFalseToAssertTrueFalseRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\AssertTrueFalseInternalTypeToSpecificMethodRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/AssertTrueFalseInternalTypeToSpecificMethodRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\AssertTrueFalseToSpecificMethodRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector.php', - 'Rector\\PHPUnit\\Rector\\MethodCall\\DelegateExceptionArgumentsRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/DelegateExceptionArgumentsRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\ExplicitPhpErrorApiRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/ExplicitPhpErrorApiRector.php', - 'Rector\\PHPUnit\\Rector\\MethodCall\\GetMockBuilderGetMockToCreateMockRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\PropertyExistsWithoutAssertRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/PropertyExistsWithoutAssertRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\RemoveExpectAnyFromMockRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/RemoveExpectAnyFromMockRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\RemoveSetMethodsMethodCallRector' => $vendorDir . '/rector/rector-phpunit/src/Rector/MethodCall/RemoveSetMethodsMethodCallRector.php', diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 40649b1f9ab..47f17886cb4 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit403e9b3e175b446d3efee98eeb37d45c +class ComposerAutoloaderInite107dc494ece1872275e224229f3a009 { private static $loader; @@ -22,17 +22,17 @@ class ComposerAutoloaderInit403e9b3e175b446d3efee98eeb37d45c return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit403e9b3e175b446d3efee98eeb37d45c', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInite107dc494ece1872275e224229f3a009', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit403e9b3e175b446d3efee98eeb37d45c', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInite107dc494ece1872275e224229f3a009', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInite107dc494ece1872275e224229f3a009::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInite107dc494ece1872275e224229f3a009::$files; $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 9b3f2d10483..cacae867e8a 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c +class ComposerStaticInite107dc494ece1872275e224229f3a009 { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -2361,13 +2361,16 @@ class ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c 'Rector\\PHPUnit\\NodeFactory\\ExpectExceptionMethodCallFactory' => __DIR__ . '/..' . '/rector/rector-phpunit/src/NodeFactory/ExpectExceptionMethodCallFactory.php', 'Rector\\PHPUnit\\NodeFinder\\DataProviderClassMethodFinder' => __DIR__ . '/..' . '/rector/rector-phpunit/src/NodeFinder/DataProviderClassMethodFinder.php', 'Rector\\PHPUnit\\PHPUnit50\\Rector\\StaticCall\\GetMockRector' => __DIR__ . '/..' . '/rector/rector-phpunit/rules/PHPUnit50/Rector/StaticCall/GetMockRector.php', + 'Rector\\PHPUnit\\PHPUnit60\\Rector\\ClassMethod\\AddDoesNotPerformAssertionToNonAssertingTestRector' => __DIR__ . '/..' . '/rector/rector-phpunit/rules/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php', + 'Rector\\PHPUnit\\PHPUnit60\\Rector\\ClassMethod\\ExceptionAnnotationRector' => __DIR__ . '/..' . '/rector/rector-phpunit/rules/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector.php', + 'Rector\\PHPUnit\\PHPUnit60\\Rector\\MethodCall\\DelegateExceptionArgumentsRector' => __DIR__ . '/..' . '/rector/rector-phpunit/rules/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector.php', + 'Rector\\PHPUnit\\PHPUnit60\\Rector\\MethodCall\\GetMockBuilderGetMockToCreateMockRector' => __DIR__ . '/..' . '/rector/rector-phpunit/rules/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector.php', + 'Rector\\PHPUnit\\PHPUnit70\\Rector\\Class_\\RemoveDataProviderTestPrefixRector' => __DIR__ . '/..' . '/rector/rector-phpunit/rules/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector.php', 'Rector\\PHPUnit\\PhpDoc\\DataProviderMethodRenamer' => __DIR__ . '/..' . '/rector/rector-phpunit/src/PhpDoc/DataProviderMethodRenamer.php', 'Rector\\PHPUnit\\PhpDoc\\PhpDocValueToNodeMapper' => __DIR__ . '/..' . '/rector/rector-phpunit/src/PhpDoc/PhpDocValueToNodeMapper.php', - 'Rector\\PHPUnit\\Rector\\ClassMethod\\AddDoesNotPerformAssertionToNonAssertingTestRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\CreateMockToAnonymousClassRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/ClassMethod/CreateMockToAnonymousClassRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\DataProviderAnnotationToAttributeRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/ClassMethod/DataProviderAnnotationToAttributeRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\DependsAnnotationWithValueToAttributeRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/ClassMethod/DependsAnnotationWithValueToAttributeRector.php', - 'Rector\\PHPUnit\\Rector\\ClassMethod\\ExceptionAnnotationRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/ClassMethod/ExceptionAnnotationRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\RemoveEmptyTestMethodRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/ClassMethod/RemoveEmptyTestMethodRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\ReplaceTestAnnotationWithPrefixedFunctionRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/ClassMethod/ReplaceTestAnnotationWithPrefixedFunctionRector.php', 'Rector\\PHPUnit\\Rector\\ClassMethod\\TryCatchToExpectExceptionRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/ClassMethod/TryCatchToExpectExceptionRector.php', @@ -2380,7 +2383,6 @@ class ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c 'Rector\\PHPUnit\\Rector\\Class_\\PreferPHPUnitSelfCallRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/Class_/PreferPHPUnitSelfCallRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\PreferPHPUnitThisCallRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/Class_/PreferPHPUnitThisCallRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\ProphecyPHPDocRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/Class_/ProphecyPHPDocRector.php', - 'Rector\\PHPUnit\\Rector\\Class_\\RemoveDataProviderTestPrefixRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/Class_/RemoveDataProviderTestPrefixRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\StaticDataProviderClassMethodRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/Class_/StaticDataProviderClassMethodRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\TestListenerToHooksRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/Class_/TestListenerToHooksRector.php', 'Rector\\PHPUnit\\Rector\\Class_\\YieldDataProviderRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/Class_/YieldDataProviderRector.php', @@ -2400,9 +2402,7 @@ class ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c 'Rector\\PHPUnit\\Rector\\MethodCall\\AssertSameTrueFalseToAssertTrueFalseRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/AssertSameTrueFalseToAssertTrueFalseRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\AssertTrueFalseInternalTypeToSpecificMethodRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/AssertTrueFalseInternalTypeToSpecificMethodRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\AssertTrueFalseToSpecificMethodRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector.php', - 'Rector\\PHPUnit\\Rector\\MethodCall\\DelegateExceptionArgumentsRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/DelegateExceptionArgumentsRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\ExplicitPhpErrorApiRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/ExplicitPhpErrorApiRector.php', - 'Rector\\PHPUnit\\Rector\\MethodCall\\GetMockBuilderGetMockToCreateMockRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\PropertyExistsWithoutAssertRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/PropertyExistsWithoutAssertRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\RemoveExpectAnyFromMockRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/RemoveExpectAnyFromMockRector.php', 'Rector\\PHPUnit\\Rector\\MethodCall\\RemoveSetMethodsMethodCallRector' => __DIR__ . '/..' . '/rector/rector-phpunit/src/Rector/MethodCall/RemoveSetMethodsMethodCallRector.php', @@ -3068,9 +3068,9 @@ class ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit403e9b3e175b446d3efee98eeb37d45c::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInite107dc494ece1872275e224229f3a009::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInite107dc494ece1872275e224229f3a009::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInite107dc494ece1872275e224229f3a009::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index f0e2a059d2a..f73e6eea15e 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -1917,12 +1917,12 @@ "source": { "type": "git", "url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git", - "reference": "8afdccb30c1ab88b2d159470fa9ac8d56dee6362" + "reference": "3482059826588c2d07ed00a3c7b0ded3e3d3faa2" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/8afdccb30c1ab88b2d159470fa9ac8d56dee6362", - "reference": "8afdccb30c1ab88b2d159470fa9ac8d56dee6362", + "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/3482059826588c2d07ed00a3c7b0ded3e3d3faa2", + "reference": "3482059826588c2d07ed00a3c7b0ded3e3d3faa2", "shasum": "" }, "require": { @@ -1947,7 +1947,7 @@ "tomasvotruba\/type-coverage": "^0.2", "tomasvotruba\/unused-public": "^0.1" }, - "time": "2023-07-06T20:12:24+00:00", + "time": "2023-07-12T13:21:58+00:00", "default-branch": true, "type": "rector-extension", "extra": { @@ -2049,12 +2049,12 @@ "source": { "type": "git", "url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git", - "reference": "120e7ee1d392e5b87b1470c9267dee87acb03037" + "reference": "3ed719e167f26fd02f7d25d77ac6e42ca4137b67" }, "dist": { "type": "zip", - "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/120e7ee1d392e5b87b1470c9267dee87acb03037", - "reference": "120e7ee1d392e5b87b1470c9267dee87acb03037", + "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/3ed719e167f26fd02f7d25d77ac6e42ca4137b67", + "reference": "3ed719e167f26fd02f7d25d77ac6e42ca4137b67", "shasum": "" }, "require": { @@ -2082,7 +2082,7 @@ "tomasvotruba\/type-coverage": "^0.1", "tomasvotruba\/unused-public": "^0.1" }, - "time": "2023-07-12T13:05:58+00:00", + "time": "2023-07-12T14:01:43+00:00", "default-branch": true, "type": "rector-extension", "extra": { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 709fae03a4a..51b4f9eee86 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -2,4 +2,4 @@ namespace RectorPrefix202307; -return array('root' => array('name' => 'rector/rector-src', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.15.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '392dc165fce93b5bb5c637b67e59619223c931b0', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.1.0', 'version' => '3.1.0.0', 'reference' => '4bff79ddd77851fe3cdd11616ed3f92841ba5bd2', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.8', 'version' => '2.0.8.0', 'reference' => 'f9301a5b2fb1216b2b08f02ba04dc45423db6bff', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'fidry/cpu-core-counter' => array('pretty_version' => '0.5.1', 'version' => '0.5.1.0', 'reference' => 'b58e5a3933e541dc286cc91fc4f3898bbc6f1623', 'type' => 'library', 'install_path' => __DIR__ . '/../fidry/cpu-core-counter', 'aliases' => array(), 'dev_requirement' => \false), 'illuminate/container' => array('pretty_version' => 'v10.15.0', 'version' => '10.15.0.0', 'reference' => 'ddc26273085fad3c471b2602ad820e0097ff7939', 'type' => 'library', 'install_path' => __DIR__ . '/../illuminate/container', 'aliases' => array(), 'dev_requirement' => \false), 'illuminate/contracts' => array('pretty_version' => 'v10.15.0', 'version' => '10.15.0.0', 'reference' => 'ec47d1aa1a1b1a679d8553836b417343881b8215', 'type' => 'library', 'install_path' => __DIR__ . '/../illuminate/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'nette/neon' => array('pretty_version' => 'v3.4.0', 'version' => '3.4.0.0', 'reference' => '372d945c156ee7f35c953339fb164538339e6283', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/neon', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.9', 'version' => '3.2.9.0', 'reference' => 'c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.16.0', 'version' => '4.16.0.0', 'reference' => '19526a33fb561ef417e822e85f08a00db4059c17', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.22.1', 'version' => '1.22.1.0', 'reference' => '65c39594fbd8c67abfc68bb323f86447bab79cc0', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.10.25', 'version' => '1.10.25.0', 'reference' => '578f4e70d117f9a90699324c555922800ac38d8c', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'psr/simple-cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => '764e0b3939f5ca87cb904f570ef9be2d78a07865', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/simple-cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/cache' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => 'd47c472b64aa5608225f47965a484b75c7817d5b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.5', 'version' => '0.6.5.0', 'reference' => 'e71eb1aa55f057c7a4a0d08d06b0b0a484bead43', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.11.0', 'version' => '1.11.0.0', 'reference' => '3be0fc8f1eb37d6875cd6f0c6c7d0be81435de9f', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.4.0', 'version' => '1.4.0.0', 'reference' => '6e7e587714fff7a83dcc7025aee42ab3b265ae05', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.10.0', 'version' => '2.10.0.0', 'reference' => 'f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.13.0', 'version' => '1.13.0.0', 'reference' => 'cff482bbad5848ecbe8b57da57e4e213b03619aa', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '6fbc9672905c7d5a885f2da2fc696f65840f4a66', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.15.x-dev', 1 => 'dev-main')), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '8afdccb30c1ab88b2d159470fa9ac8d56dee6362', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-downgrade-php' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '410d05fdb2932f5a8ef37a0b2506534a336cae4e', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '120e7ee1d392e5b87b1470c9267dee87acb03037', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpunit', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-src' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.15.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'e788554977deb55d7d7d2514a78c0cb2f89ef227', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '5.0.3', 'version' => '5.0.3.0', 'reference' => '912dc2fbe3e3c1e7873313cc801b100b6c68c87b', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/config' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => 'a5e00dec161b08c946a2c16eed02adbeedf827ae', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => '8788808b07cf0bdd6e4b7fdd23d8ddb1470c83b7', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.3.0', 'version' => '3.3.0.0', 'reference' => '9e4b5e4e44e7620475dbceecf7c72c3883f3ea35', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.12', 'version' => '6.1.12.0', 'reference' => '360c9d0948e1fe675336346d5862e8e55b378d90', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/filesystem' => array('pretty_version' => 'v6.3.1', 'version' => '6.3.1.0', 'reference' => 'edd36776956f2a6fcf577edb5b05eb0e3bdc52ae', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => 'd9b01ba073c44cef617c7907ce2419f8d00d75e2', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/polyfill-ctype' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-grapheme' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '19bd1e4fcd5b91116f14d8533c57831ed00571b6', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '8ad114f6b39e2c98a8b0e3bd907732c207c2b534', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/process' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => '8741e3ed7fe2e91ec099e02446fb86667a0f1628', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/process', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => 'f2e190ee75ff0f5eced645ec0be5c66fac81f51f', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symplify/easy-parallel' => array('pretty_version' => '11.1.27', 'version' => '11.1.27.0', 'reference' => '28911142f6a0f4127271f745e2403bb84fcd2b87', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.26', 'version' => '11.1.26.0', 'reference' => '3e66b3fec678b74a076395ec629d535fb95293b5', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.10.2', 'version' => '2.10.2.0', 'reference' => '882fee7cf4258a602ad4a37461e837ed2ca1406b', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', 'aliases' => array(), 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.11.0', 'version' => '1.11.0.0', 'reference' => '11cb2199493b2f8a3b53e7f19068fc6aac760991', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'dev_requirement' => \false))); +return array('root' => array('name' => 'rector/rector-src', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.15.x-dev'), 'dev' => \false), 'versions' => array('clue/ndjson-react' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '392dc165fce93b5bb5c637b67e59619223c931b0', 'type' => 'library', 'install_path' => __DIR__ . '/../clue/ndjson-react', 'aliases' => array(), 'dev_requirement' => \false), 'composer/pcre' => array('pretty_version' => '3.1.0', 'version' => '3.1.0.0', 'reference' => '4bff79ddd77851fe3cdd11616ed3f92841ba5bd2', 'type' => 'library', 'install_path' => __DIR__ . '/./pcre', 'aliases' => array(), 'dev_requirement' => \false), 'composer/semver' => array('pretty_version' => '3.3.2', 'version' => '3.3.2.0', 'reference' => '3953f23262f2bff1919fc82183ad9acb13ff62c9', 'type' => 'library', 'install_path' => __DIR__ . '/./semver', 'aliases' => array(), 'dev_requirement' => \false), 'composer/xdebug-handler' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'ced299686f41dce890debac69273b47ffe98a40c', 'type' => 'library', 'install_path' => __DIR__ . '/./xdebug-handler', 'aliases' => array(), 'dev_requirement' => \false), 'doctrine/inflector' => array('pretty_version' => '2.0.8', 'version' => '2.0.8.0', 'reference' => 'f9301a5b2fb1216b2b08f02ba04dc45423db6bff', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/inflector', 'aliases' => array(), 'dev_requirement' => \false), 'evenement/evenement' => array('pretty_version' => 'v3.0.1', 'version' => '3.0.1.0', 'reference' => '531bfb9d15f8aa57454f5f0285b18bec903b8fb7', 'type' => 'library', 'install_path' => __DIR__ . '/../evenement/evenement', 'aliases' => array(), 'dev_requirement' => \false), 'fidry/cpu-core-counter' => array('pretty_version' => '0.5.1', 'version' => '0.5.1.0', 'reference' => 'b58e5a3933e541dc286cc91fc4f3898bbc6f1623', 'type' => 'library', 'install_path' => __DIR__ . '/../fidry/cpu-core-counter', 'aliases' => array(), 'dev_requirement' => \false), 'illuminate/container' => array('pretty_version' => 'v10.15.0', 'version' => '10.15.0.0', 'reference' => 'ddc26273085fad3c471b2602ad820e0097ff7939', 'type' => 'library', 'install_path' => __DIR__ . '/../illuminate/container', 'aliases' => array(), 'dev_requirement' => \false), 'illuminate/contracts' => array('pretty_version' => 'v10.15.0', 'version' => '10.15.0.0', 'reference' => 'ec47d1aa1a1b1a679d8553836b417343881b8215', 'type' => 'library', 'install_path' => __DIR__ . '/../illuminate/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'nette/neon' => array('pretty_version' => 'v3.4.0', 'version' => '3.4.0.0', 'reference' => '372d945c156ee7f35c953339fb164538339e6283', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/neon', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v3.2.9', 'version' => '3.2.9.0', 'reference' => 'c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'nikic/php-parser' => array('pretty_version' => 'v4.16.0', 'version' => '4.16.0.0', 'reference' => '19526a33fb561ef417e822e85f08a00db4059c17', 'type' => 'library', 'install_path' => __DIR__ . '/../nikic/php-parser', 'aliases' => array(), 'dev_requirement' => \false), 'ondram/ci-detector' => array('pretty_version' => '4.1.0', 'version' => '4.1.0.0', 'reference' => '8a4b664e916df82ff26a44709942dfd593fa6f30', 'type' => 'library', 'install_path' => __DIR__ . '/../ondram/ci-detector', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '1.22.1', 'version' => '1.22.1.0', 'reference' => '65c39594fbd8c67abfc68bb323f86447bab79cc0', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpstan' => array('pretty_version' => '1.10.25', 'version' => '1.10.25.0', 'reference' => '578f4e70d117f9a90699324c555922800ac38d8c', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpstan', 'aliases' => array(), 'dev_requirement' => \false), 'psr/cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/cache', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '2.0.2', 'version' => '2.0.2.0', 'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0')), 'psr/event-dispatcher' => array('pretty_version' => '1.0.0', 'version' => '1.0.0.0', 'reference' => 'dbefd12671e8a14ec7f180cab83036ed26714bb0', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/event-dispatcher', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0|2.0|3.0')), 'psr/simple-cache' => array('pretty_version' => '3.0.0', 'version' => '3.0.0.0', 'reference' => '764e0b3939f5ca87cb904f570ef9be2d78a07865', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/simple-cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/cache' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => 'd47c472b64aa5608225f47965a484b75c7817d5b', 'type' => 'library', 'install_path' => __DIR__ . '/../react/cache', 'aliases' => array(), 'dev_requirement' => \false), 'react/child-process' => array('pretty_version' => 'v0.6.5', 'version' => '0.6.5.0', 'reference' => 'e71eb1aa55f057c7a4a0d08d06b0b0a484bead43', 'type' => 'library', 'install_path' => __DIR__ . '/../react/child-process', 'aliases' => array(), 'dev_requirement' => \false), 'react/dns' => array('pretty_version' => 'v1.11.0', 'version' => '1.11.0.0', 'reference' => '3be0fc8f1eb37d6875cd6f0c6c7d0be81435de9f', 'type' => 'library', 'install_path' => __DIR__ . '/../react/dns', 'aliases' => array(), 'dev_requirement' => \false), 'react/event-loop' => array('pretty_version' => 'v1.4.0', 'version' => '1.4.0.0', 'reference' => '6e7e587714fff7a83dcc7025aee42ab3b265ae05', 'type' => 'library', 'install_path' => __DIR__ . '/../react/event-loop', 'aliases' => array(), 'dev_requirement' => \false), 'react/promise' => array('pretty_version' => 'v2.10.0', 'version' => '2.10.0.0', 'reference' => 'f913fb8cceba1e6644b7b90c4bfb678ed8a3ef38', 'type' => 'library', 'install_path' => __DIR__ . '/../react/promise', 'aliases' => array(), 'dev_requirement' => \false), 'react/socket' => array('pretty_version' => 'v1.13.0', 'version' => '1.13.0.0', 'reference' => 'cff482bbad5848ecbe8b57da57e4e213b03619aa', 'type' => 'library', 'install_path' => __DIR__ . '/../react/socket', 'aliases' => array(), 'dev_requirement' => \false), 'react/stream' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '6fbc9672905c7d5a885f2da2fc696f65840f4a66', 'type' => 'library', 'install_path' => __DIR__ . '/../react/stream', 'aliases' => array(), 'dev_requirement' => \false), 'rector/extension-installer' => array('pretty_version' => '0.11.2', 'version' => '0.11.2.0', 'reference' => '05544e9b195863b8571ae2a3b903cbec7fa062e0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../rector/extension-installer', 'aliases' => array(), 'dev_requirement' => \false), 'rector/rector' => array('dev_requirement' => \false, 'replaced' => array(0 => '0.15.x-dev', 1 => 'dev-main')), 'rector/rector-doctrine' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '3482059826588c2d07ed00a3c7b0ded3e3d3faa2', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-doctrine', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-downgrade-php' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '410d05fdb2932f5a8ef37a0b2506534a336cae4e', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-downgrade-php', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'rector/rector-phpunit' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '3ed719e167f26fd02f7d25d77ac6e42ca4137b67', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-phpunit', 'aliases' => array(0 => '0.11.x-dev'), 'dev_requirement' => \false), 'rector/rector-src' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(0 => '0.15.x-dev'), 'dev_requirement' => \false), 'rector/rector-symfony' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => 'e788554977deb55d7d7d2514a78c0cb2f89ef227', 'type' => 'rector-extension', 'install_path' => __DIR__ . '/../rector/rector-symfony', 'aliases' => array(0 => '9999999-dev'), 'dev_requirement' => \false), 'sebastian/diff' => array('pretty_version' => '5.0.3', 'version' => '5.0.3.0', 'reference' => '912dc2fbe3e3c1e7873313cc801b100b6c68c87b', 'type' => 'library', 'install_path' => __DIR__ . '/../sebastian/diff', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/cache-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/config' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => 'a5e00dec161b08c946a2c16eed02adbeedf827ae', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/config', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/console' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => '8788808b07cf0bdd6e4b7fdd23d8ddb1470c83b7', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/console', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/contracts' => array('pretty_version' => 'v3.3.0', 'version' => '3.3.0.0', 'reference' => '9e4b5e4e44e7620475dbceecf7c72c3883f3ea35', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/contracts', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/dependency-injection' => array('pretty_version' => 'v6.1.12', 'version' => '6.1.12.0', 'reference' => '360c9d0948e1fe675336346d5862e8e55b378d90', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/dependency-injection', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/event-dispatcher-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/filesystem' => array('pretty_version' => 'v6.3.1', 'version' => '6.3.1.0', 'reference' => 'edd36776956f2a6fcf577edb5b05eb0e3bdc52ae', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/filesystem', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/finder' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => 'd9b01ba073c44cef617c7907ce2419f8d00d75e2', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/finder', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/http-client-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/polyfill-ctype' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-grapheme' => array('dev_requirement' => \false, 'replaced' => array(0 => '*')), 'symfony/polyfill-intl-normalizer' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '19bd1e4fcd5b91116f14d8533c57831ed00571b6', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-intl-normalizer', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/polyfill-mbstring' => array('pretty_version' => 'v1.27.0', 'version' => '1.27.0.0', 'reference' => '8ad114f6b39e2c98a8b0e3bd907732c207c2b534', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/process' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => '8741e3ed7fe2e91ec099e02446fb86667a0f1628', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/process', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/service-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symfony/service-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.1|2.0|3.0')), 'symfony/string' => array('pretty_version' => 'v6.3.0', 'version' => '6.3.0.0', 'reference' => 'f2e190ee75ff0f5eced645ec0be5c66fac81f51f', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/string', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/translation-contracts' => array('dev_requirement' => \false, 'replaced' => array(0 => 'v3.3.0')), 'symplify/easy-parallel' => array('pretty_version' => '11.1.27', 'version' => '11.1.27.0', 'reference' => '28911142f6a0f4127271f745e2403bb84fcd2b87', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/easy-parallel', 'aliases' => array(), 'dev_requirement' => \false), 'symplify/rule-doc-generator-contracts' => array('pretty_version' => '11.1.26', 'version' => '11.1.26.0', 'reference' => '3e66b3fec678b74a076395ec629d535fb95293b5', 'type' => 'library', 'install_path' => __DIR__ . '/../symplify/rule-doc-generator-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'tracy/tracy' => array('pretty_version' => 'v2.10.2', 'version' => '2.10.2.0', 'reference' => '882fee7cf4258a602ad4a37461e837ed2ca1406b', 'type' => 'library', 'install_path' => __DIR__ . '/../tracy/tracy', 'aliases' => array(), 'dev_requirement' => \false), 'webmozart/assert' => array('pretty_version' => '1.11.0', 'version' => '1.11.0.0', 'reference' => '11cb2199493b2f8a3b53e7f19068fc6aac760991', 'type' => 'library', 'install_path' => __DIR__ . '/../webmozart/assert', 'aliases' => array(), 'dev_requirement' => \false))); diff --git a/vendor/rector/extension-installer/src/GeneratedConfig.php b/vendor/rector/extension-installer/src/GeneratedConfig.php index 6d995bed96b..46ef14e5550 100644 --- a/vendor/rector/extension-installer/src/GeneratedConfig.php +++ b/vendor/rector/extension-installer/src/GeneratedConfig.php @@ -9,7 +9,7 @@ namespace Rector\RectorInstaller; */ final class GeneratedConfig { - public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 8afdccb'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 410d05f'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 120e7ee'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e788554')); + public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3482059'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 410d05f'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3ed719e'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e788554')); private function __construct() { } diff --git a/vendor/rector/rector-doctrine/src/NodeManipulator/PropertyTypeManipulator.php b/vendor/rector/rector-doctrine/src/NodeManipulator/PropertyTypeManipulator.php index 5bae59ee2aa..e9e679d563c 100644 --- a/vendor/rector/rector-doctrine/src/NodeManipulator/PropertyTypeManipulator.php +++ b/vendor/rector/rector-doctrine/src/NodeManipulator/PropertyTypeManipulator.php @@ -5,7 +5,6 @@ namespace Rector\Doctrine\NodeManipulator; use PhpParser\Node\Stmt\Property; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; -use Rector\Core\Exception\NotImplementedYetException; use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\DocBlockClassRenamer; use Rector\NodeTypeResolver\ValueObject\OldToNewType; diff --git a/vendor/rector/rector-doctrine/src/Rector/Class_/ClassAnnotationToNamedArgumentConstructorRector.php b/vendor/rector/rector-doctrine/src/Rector/Class_/ClassAnnotationToNamedArgumentConstructorRector.php index ef8ccaec17a..d074a41ed62 100644 --- a/vendor/rector/rector-doctrine/src/Rector/Class_/ClassAnnotationToNamedArgumentConstructorRector.php +++ b/vendor/rector/rector-doctrine/src/Rector/Class_/ClassAnnotationToNamedArgumentConstructorRector.php @@ -5,7 +5,6 @@ namespace Rector\Doctrine\Rector\Class_; use PhpParser\Node; use PhpParser\Node\Expr\Variable; -use PhpParser\Node\Param; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode; diff --git a/vendor/rector/rector-phpunit/config/sets/phpunit-code-quality.php b/vendor/rector/rector-phpunit/config/sets/phpunit-code-quality.php index f194cfacc10..91d1244219b 100644 --- a/vendor/rector/rector-phpunit/config/sets/phpunit-code-quality.php +++ b/vendor/rector/rector-phpunit/config/sets/phpunit-code-quality.php @@ -8,11 +8,56 @@ use Rector\PHPUnit\Rector\Class_\AddSeeTestAnnotationRector; use Rector\PHPUnit\Rector\Class_\ConstructClassMethodToSetUpTestCaseRector; use Rector\PHPUnit\Rector\Class_\PreferPHPUnitThisCallRector; use Rector\PHPUnit\Rector\Class_\YieldDataProviderRector; +use Rector\PHPUnit\Rector\Foreach_\SimplifyForeachInstanceOfRector; use Rector\PHPUnit\Rector\MethodCall\AssertCompareToSpecificMethodRector; use Rector\PHPUnit\Rector\MethodCall\AssertComparisonToSpecificMethodRector; use Rector\PHPUnit\Rector\MethodCall\AssertEqualsToSameRector; +use Rector\PHPUnit\Rector\MethodCall\AssertFalseStrposToContainsRector; +use Rector\PHPUnit\Rector\MethodCall\AssertInstanceOfComparisonRector; +use Rector\PHPUnit\Rector\MethodCall\AssertIssetToSpecificMethodRector; +use Rector\PHPUnit\Rector\MethodCall\AssertNotOperatorRector; +use Rector\PHPUnit\Rector\MethodCall\AssertPropertyExistsRector; +use Rector\PHPUnit\Rector\MethodCall\AssertRegExpRector; +use Rector\PHPUnit\Rector\MethodCall\AssertSameBoolNullToSpecificMethodRector; use Rector\PHPUnit\Rector\MethodCall\AssertSameTrueFalseToAssertTrueFalseRector; +use Rector\PHPUnit\Rector\MethodCall\AssertTrueFalseInternalTypeToSpecificMethodRector; +use Rector\PHPUnit\Rector\MethodCall\AssertTrueFalseToSpecificMethodRector; use Rector\PHPUnit\Rector\MethodCall\RemoveExpectAnyFromMockRector; +use Rector\PHPUnit\Rector\MethodCall\RemoveSetMethodsMethodCallRector; +use Rector\PHPUnit\Rector\MethodCall\UseSpecificWillMethodRector; return static function (RectorConfig $rectorConfig) : void { - $rectorConfig->rules([RemoveExpectAnyFromMockRector::class, AddSeeTestAnnotationRector::class, ConstructClassMethodToSetUpTestCaseRector::class, AssertSameTrueFalseToAssertTrueFalseRector::class, AssertEqualsToSameRector::class, AssertCompareToSpecificMethodRector::class, AssertComparisonToSpecificMethodRector::class, PreferPHPUnitThisCallRector::class, YieldDataProviderRector::class]); + $rectorConfig->rules([ + AddSeeTestAnnotationRector::class, + ConstructClassMethodToSetUpTestCaseRector::class, + AssertSameTrueFalseToAssertTrueFalseRector::class, + AssertEqualsToSameRector::class, + PreferPHPUnitThisCallRector::class, + YieldDataProviderRector::class, + // sepcific asserts + AssertCompareToSpecificMethodRector::class, + AssertComparisonToSpecificMethodRector::class, + AssertNotOperatorRector::class, + AssertTrueFalseToSpecificMethodRector::class, + AssertSameBoolNullToSpecificMethodRector::class, + AssertFalseStrposToContainsRector::class, + AssertTrueFalseInternalTypeToSpecificMethodRector::class, + AssertIssetToSpecificMethodRector::class, + AssertInstanceOfComparisonRector::class, + AssertPropertyExistsRector::class, + AssertRegExpRector::class, + SimplifyForeachInstanceOfRector::class, + UseSpecificWillMethodRector::class, + /** + * Improve direct testing of your code, without mock creep. Make it simple, clear and easy to maintain: + * + * @see https://blog.frankdejonge.nl/testing-without-mocking-frameworks/ + * @see https://maksimivanov.com/posts/dont-mock-what-you-dont-own/ + * @see https://dev.to/mguinea/stop-using-mocking-libraries-2f2k + * @see https://mnapoli.fr/anonymous-classes-in-tests/ + * @see https://steemit.com/php/@crell/don-t-use-mocking-libraries + * @see https://davegebler.com/post/php/better-php-unit-testing-avoiding-mocks + */ + RemoveSetMethodsMethodCallRector::class, + RemoveExpectAnyFromMockRector::class, + ]); }; diff --git a/vendor/rector/rector-phpunit/config/sets/phpunit-exception.php b/vendor/rector/rector-phpunit/config/sets/phpunit-exception.php index e116d489b7b..a8f0dbbc037 100644 --- a/vendor/rector/rector-phpunit/config/sets/phpunit-exception.php +++ b/vendor/rector/rector-phpunit/config/sets/phpunit-exception.php @@ -4,13 +4,6 @@ declare (strict_types=1); namespace RectorPrefix202307; use Rector\Config\RectorConfig; -use Rector\PHPUnit\Rector\ClassMethod\ExceptionAnnotationRector; -use Rector\PHPUnit\Rector\MethodCall\DelegateExceptionArgumentsRector; -use Rector\Renaming\Rector\MethodCall\RenameMethodRector; -use Rector\Renaming\ValueObject\MethodCallRename; +/** @deprecated Use PHPUnit 6.0 set instead, as related to the version */ return static function (RectorConfig $rectorConfig) : void { - # handles 2nd and 3rd argument of setExpectedException - $rectorConfig->rule(DelegateExceptionArgumentsRector::class); - $rectorConfig->rule(ExceptionAnnotationRector::class); - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [new MethodCallRename('PHPUnit\\Framework\\TestClass', 'setExpectedException', 'expectedException'), new MethodCallRename('PHPUnit\\Framework\\TestClass', 'setExpectedExceptionRegExp', 'expectedException')]); }; diff --git a/vendor/rector/rector-phpunit/config/sets/phpunit-specific-method.php b/vendor/rector/rector-phpunit/config/sets/phpunit-specific-method.php index b0a73109f14..53196402750 100644 --- a/vendor/rector/rector-phpunit/config/sets/phpunit-specific-method.php +++ b/vendor/rector/rector-phpunit/config/sets/phpunit-specific-method.php @@ -4,18 +4,6 @@ declare (strict_types=1); namespace RectorPrefix202307; use Rector\Config\RectorConfig; -use Rector\PHPUnit\Rector\Foreach_\SimplifyForeachInstanceOfRector; -use Rector\PHPUnit\Rector\MethodCall\AssertCompareToSpecificMethodRector; -use Rector\PHPUnit\Rector\MethodCall\AssertComparisonToSpecificMethodRector; -use Rector\PHPUnit\Rector\MethodCall\AssertFalseStrposToContainsRector; -use Rector\PHPUnit\Rector\MethodCall\AssertInstanceOfComparisonRector; -use Rector\PHPUnit\Rector\MethodCall\AssertIssetToSpecificMethodRector; -use Rector\PHPUnit\Rector\MethodCall\AssertNotOperatorRector; -use Rector\PHPUnit\Rector\MethodCall\AssertPropertyExistsRector; -use Rector\PHPUnit\Rector\MethodCall\AssertRegExpRector; -use Rector\PHPUnit\Rector\MethodCall\AssertSameBoolNullToSpecificMethodRector; -use Rector\PHPUnit\Rector\MethodCall\AssertTrueFalseInternalTypeToSpecificMethodRector; -use Rector\PHPUnit\Rector\MethodCall\AssertTrueFalseToSpecificMethodRector; +/** @deprecated Use PHPUnit CodeQuality set instead, as related to the code quality */ return static function (RectorConfig $rectorConfig) : void { - $rectorConfig->rules([AssertNotOperatorRector::class, AssertComparisonToSpecificMethodRector::class, AssertTrueFalseToSpecificMethodRector::class, AssertSameBoolNullToSpecificMethodRector::class, AssertFalseStrposToContainsRector::class, AssertTrueFalseInternalTypeToSpecificMethodRector::class, AssertCompareToSpecificMethodRector::class, AssertIssetToSpecificMethodRector::class, AssertInstanceOfComparisonRector::class, AssertPropertyExistsRector::class, AssertRegExpRector::class, SimplifyForeachInstanceOfRector::class]); }; diff --git a/vendor/rector/rector-phpunit/config/sets/phpunit60.php b/vendor/rector/rector-phpunit/config/sets/phpunit60.php index 37d79c14022..274e5a6e729 100644 --- a/vendor/rector/rector-phpunit/config/sets/phpunit60.php +++ b/vendor/rector/rector-phpunit/config/sets/phpunit60.php @@ -4,21 +4,22 @@ declare (strict_types=1); namespace RectorPrefix202307; use Rector\Config\RectorConfig; -use Rector\PHPUnit\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector; -use Rector\PHPUnit\Rector\MethodCall\GetMockBuilderGetMockToCreateMockRector; +use Rector\PHPUnit\PHPUnit60\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector; +use Rector\PHPUnit\PHPUnit60\Rector\ClassMethod\ExceptionAnnotationRector; +use Rector\PHPUnit\PHPUnit60\Rector\MethodCall\DelegateExceptionArgumentsRector; +use Rector\PHPUnit\PHPUnit60\Rector\MethodCall\GetMockBuilderGetMockToCreateMockRector; use Rector\Renaming\Rector\FileWithoutNamespace\PseudoNamespaceToNamespaceRector; use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\Name\RenameClassRector; use Rector\Renaming\ValueObject\MethodCallRename; use Rector\Renaming\ValueObject\PseudoNamespaceToNamespace; return static function (RectorConfig $rectorConfig) : void { - $rectorConfig->import(__DIR__ . '/phpunit-exception.php'); - $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [new MethodCallRename('PHPUnit\\Framework\\TestCase', 'createMockBuilder', 'getMockBuilder')]); + // handles 2nd and 3rd argument of setExpectedException + $rectorConfig->rules([DelegateExceptionArgumentsRector::class, ExceptionAnnotationRector::class, AddDoesNotPerformAssertionToNonAssertingTestRector::class, GetMockBuilderGetMockToCreateMockRector::class]); + $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [new MethodCallRename('PHPUnit\\Framework\\TestClass', 'setExpectedException', 'expectedException'), new MethodCallRename('PHPUnit\\Framework\\TestClass', 'setExpectedExceptionRegExp', 'expectedException'), new MethodCallRename('PHPUnit\\Framework\\TestCase', 'createMockBuilder', 'getMockBuilder')]); $rectorConfig->ruleWithConfiguration(RenameClassRector::class, ['PHPUnit_Framework_MockObject_Stub' => 'PHPUnit\\Framework\\MockObject\\Stub', 'PHPUnit_Framework_MockObject_Stub_Return' => 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnStub', 'PHPUnit_Framework_MockObject_Matcher_Parameters' => 'PHPUnit\\Framework\\MockObject\\Matcher\\Parameters', 'PHPUnit_Framework_MockObject_Matcher_Invocation' => 'PHPUnit\\Framework\\MockObject\\Matcher\\Invocation', 'PHPUnit_Framework_MockObject_MockObject' => 'PHPUnit\\Framework\\MockObject\\MockObject', 'PHPUnit_Framework_MockObject_Invocation_Object' => 'PHPUnit\\Framework\\MockObject\\Invocation\\ObjectInvocation']); $rectorConfig->ruleWithConfiguration(PseudoNamespaceToNamespaceRector::class, [ // ref. https://github.com/sebastianbergmann/phpunit/compare/5.7.9...6.0.0 new PseudoNamespaceToNamespace('PHPUnit_', ['PHPUnit_Framework_MockObject_MockObject', 'PHPUnit_Framework_MockObject_Invocation_Object', 'PHPUnit_Framework_MockObject_Matcher_Invocation', 'PHPUnit_Framework_MockObject_Matcher_Parameters', 'PHPUnit_Framework_MockObject_Stub_Return', 'PHPUnit_Framework_MockObject_Stub']), ]); - $rectorConfig->rule(AddDoesNotPerformAssertionToNonAssertingTestRector::class); - $rectorConfig->rule(GetMockBuilderGetMockToCreateMockRector::class); }; diff --git a/vendor/rector/rector-phpunit/config/sets/phpunit70.php b/vendor/rector/rector-phpunit/config/sets/phpunit70.php index 364e10167df..faf7120504c 100644 --- a/vendor/rector/rector-phpunit/config/sets/phpunit70.php +++ b/vendor/rector/rector-phpunit/config/sets/phpunit70.php @@ -4,11 +4,10 @@ declare (strict_types=1); namespace RectorPrefix202307; use Rector\Config\RectorConfig; -use Rector\PHPUnit\Rector\Class_\RemoveDataProviderTestPrefixRector; +use Rector\PHPUnit\PHPUnit70\Rector\Class_\RemoveDataProviderTestPrefixRector; use Rector\Renaming\Rector\ClassMethod\RenameAnnotationRector; use Rector\Renaming\ValueObject\RenameAnnotationByType; return static function (RectorConfig $rectorConfig) : void { - $rectorConfig->import(__DIR__ . '/phpunit-exception.php'); $rectorConfig->ruleWithConfiguration(RenameAnnotationRector::class, [new RenameAnnotationByType('PHPUnit\\Framework\\TestCase', 'scenario', 'test')]); $rectorConfig->rule(RemoveDataProviderTestPrefixRector::class); }; diff --git a/vendor/rector/rector-phpunit/config/sets/phpunit80.php b/vendor/rector/rector-phpunit/config/sets/phpunit80.php index 5fb898533af..265244740f0 100644 --- a/vendor/rector/rector-phpunit/config/sets/phpunit80.php +++ b/vendor/rector/rector-phpunit/config/sets/phpunit80.php @@ -16,7 +16,6 @@ use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector; use Rector\TypeDeclaration\ValueObject\AddParamTypeDeclaration; use Rector\TypeDeclaration\ValueObject\AddReturnTypeDeclaration; return static function (RectorConfig $rectorConfig) : void { - $rectorConfig->import(__DIR__ . '/phpunit-exception.php'); $rectorConfig->rules([SpecificAssertInternalTypeRector::class, AssertEqualsParameterToSpecificMethodsTypeRector::class, SpecificAssertContainsRector::class]); $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [ # https://github.com/sebastianbergmann/phpunit/issues/3123 diff --git a/vendor/rector/rector-phpunit/config/sets/remove-mocks.php b/vendor/rector/rector-phpunit/config/sets/remove-mocks.php index 97bd4fa70b8..2539cc9aeba 100644 --- a/vendor/rector/rector-phpunit/config/sets/remove-mocks.php +++ b/vendor/rector/rector-phpunit/config/sets/remove-mocks.php @@ -4,24 +4,6 @@ declare (strict_types=1); namespace RectorPrefix202307; use Rector\Config\RectorConfig; -use Rector\PHPUnit\Rector\MethodCall\GetMockBuilderGetMockToCreateMockRector; -use Rector\PHPUnit\Rector\MethodCall\RemoveExpectAnyFromMockRector; -use Rector\PHPUnit\Rector\MethodCall\RemoveSetMethodsMethodCallRector; -use Rector\PHPUnit\Rector\MethodCall\UseSpecificWillMethodRector; -/** - * Set to improve direct testing of your code, without mock overgrown weed everywhere. Make it simple and clear, easy to - * maintain and swift to read. - * - * @see https://blog.frankdejonge.nl/testing-without-mocking-frameworks/ - * @see https://maksimivanov.com/posts/dont-mock-what-you-dont-own/ - * @see https://dev.to/mguinea/stop-using-mocking-libraries-2f2k - * @see https://mnapoli.fr/anonymous-classes-in-tests/ - * @see https://steemit.com/php/@crell/don-t-use-mocking-libraries - * @see https://davegebler.com/post/php/better-php-unit-testing-avoiding-mocks - */ +/** @deprecated Use CodeQuality set instead, as related to code-quality */ return static function (RectorConfig $rectorConfig) : void { - $rectorConfig->rule(RemoveSetMethodsMethodCallRector::class); - $rectorConfig->rule(GetMockBuilderGetMockToCreateMockRector::class); - $rectorConfig->rule(RemoveExpectAnyFromMockRector::class); - $rectorConfig->rule(UseSpecificWillMethodRector::class); }; diff --git a/vendor/rector/rector-phpunit/easy-ci.php b/vendor/rector/rector-phpunit/easy-ci.php index dad6554202f..c8d93f922f8 100644 --- a/vendor/rector/rector-phpunit/easy-ci.php +++ b/vendor/rector/rector-phpunit/easy-ci.php @@ -7,6 +7,6 @@ use Rector\Core\Contract\Rector\RectorInterface; use Rector\Set\Contract\SetListInterface; use RectorPrefix202307\Symplify\EasyCI\Config\EasyCIConfig; return static function (EasyCIConfig $easyCIConfig) : void { - $easyCIConfig->paths([__DIR__ . '/config', __DIR__ . '/src']); + $easyCIConfig->paths([__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/rules']); $easyCIConfig->typesToSkip([RectorInterface::class, SetListInterface::class]); }; diff --git a/vendor/rector/rector-phpunit/rector.php b/vendor/rector/rector-phpunit/rector.php index 5605b1c7115..c44e2ef5f65 100644 --- a/vendor/rector/rector-phpunit/rector.php +++ b/vendor/rector/rector-phpunit/rector.php @@ -10,21 +10,16 @@ use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; return static function (RectorConfig $rectorConfig) : void { $rectorConfig->importNames(); - $rectorConfig->disableParallel(); $rectorConfig->paths([__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/rules', __DIR__ . '/rules-tests']); $rectorConfig->skip([ // for tests '*/Source/*', '*/Fixture/*', '*/Expected/*', - // buggy here - \Rector\CodeQuality\Rector\If_\ConsecutiveNullCompareReturnsToNullCoalesceQueueRector::class, // object types - StringClassNameToClassConstantRector::class => [__DIR__ . '/src/Rector/MethodCall/UseSpecificWillMethodRector.php', __DIR__ . '/src/Rector/Class_/TestListenerToHooksRector.php', __DIR__ . '/src/NodeFactory/ConsecutiveAssertionFactory.php', __DIR__ . '/src/NodeAnalyzer/TestsNodeAnalyzer.php', __DIR__ . '/src/NodeFactory/DataProviderClassMethodFactory.php', __DIR__ . '/config'], + StringClassNameToClassConstantRector::class => [__DIR__ . '/src/Rector/Class_/TestListenerToHooksRector.php', __DIR__ . '/src/NodeAnalyzer/TestsNodeAnalyzer.php', __DIR__ . '/config'], ]); $rectorConfig->sets([ - // needed for DEAD_CODE list, just in split package like this - __DIR__ . '/config/config.php', LevelSetList::UP_TO_PHP_81, SetList::DEAD_CODE, PHPUnitSetList::PHPUNIT_100, @@ -35,6 +30,8 @@ return static function (RectorConfig $rectorConfig) : void { SetList::NAMING, SetList::TYPE_DECLARATION, SetList::PRIVATIZATION, + // needed for DEAD_CODE list, just in split package like this + __DIR__ . '/config/config.php', ]); $rectorConfig->ruleWithConfiguration(StringClassNameToClassConstantRector::class, [ // keep unprefixed to protected from downgrade diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/AddDoesNotPerformAssertionToNonAssertingTestRectorTest.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/AddDoesNotPerformAssertionToNonAssertingTestRectorTest.php new file mode 100644 index 00000000000..19a803af593 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/AddDoesNotPerformAssertionToNonAssertingTestRectorTest.php @@ -0,0 +1,23 @@ +doTestFile($filePath); + } + public static function provideData() : Iterator + { + return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + } + public function provideConfigFilePath() : string + { + return __DIR__ . '/config/configured_rule.php'; + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/fixture.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/fixture.php.inc new file mode 100644 index 00000000000..60476f34a06 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/fixture.php.inc @@ -0,0 +1,30 @@ + +----- + diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert.php.inc new file mode 100644 index 00000000000..82dfbca4403 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert.php.inc @@ -0,0 +1,18 @@ +assertNotNull(5); + } + + public function testStatic() + { + $nothing = 5; + self::assertNotNull(5); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert_in_call.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert_in_call.php.inc new file mode 100644 index 00000000000..590611322d7 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert_in_call.php.inc @@ -0,0 +1,16 @@ +doElsewhere(5); + } + + private function doElsewhere($value) + { + $this->assertNotNull($value); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert_in_static_call.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert_in_static_call.php.inc new file mode 100644 index 00000000000..f0da32b1089 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_assert_in_static_call.php.inc @@ -0,0 +1,18 @@ +expectException('Throwable'); + throw new InvalidArgumentException(); + } + + public function testSetExpectedException() + { + $this->setExpectedException('Throwable'); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_non_public.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_non_public.php.inc new file mode 100644 index 00000000000..b42c7467a3d --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_non_public.php.inc @@ -0,0 +1,10 @@ +refreshFixtures(); + $this->doSomeOtherStuff(); + + $this->handleAssert($bool); + } + + /** + * @return bool[] + */ + public function trueProvider(): array + { + return [ + [true], + ]; + } + + private function handleAssert(bool $bool): void + { + // some generic function that can be used for multiple test to do the same assertions. + self::assertTrue($bool); + } + + protected function refreshFixtures(): void + { + // TODO: Implement refreshFixtures() method. + } + + protected function doSomeOtherStuff(): void + { + // TODO: Implement doSomeOtherStuff() method. + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_parent_method_assert.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_parent_method_assert.php.inc new file mode 100644 index 00000000000..fafe87b52ab --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_parent_method_assert.php.inc @@ -0,0 +1,13 @@ +doAssertThis(); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_parent_method_static_assert.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_parent_method_static_assert.php.inc new file mode 100644 index 00000000000..a24b832ef97 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/keep_with_parent_method_static_assert.php.inc @@ -0,0 +1,13 @@ +doAssertThis(); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/prophecy_assertions.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/prophecy_assertions.php.inc new file mode 100644 index 00000000000..67a635996c2 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/prophecy_assertions.php.inc @@ -0,0 +1,25 @@ +prophesize(DenormalizerInterface::class); + $denormalizer + ->denormalize($fixedData, $type) + ->shouldBeCalled(); + + (new Denormalizer($denormalizer))->handle($badData, $type); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skipMockery_test.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skipMockery_test.php.inc new file mode 100644 index 00000000000..c956e99f9ce --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skipMockery_test.php.inc @@ -0,0 +1,15 @@ +expects()->isAllowed('yes', 'vote'); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_abstract_method.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_abstract_method.php.inc new file mode 100644 index 00000000000..9ed46b29651 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_abstract_method.php.inc @@ -0,0 +1,12 @@ + diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_already_attributed_doesnot_perform_assertion.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_already_attributed_doesnot_perform_assertion.php.inc new file mode 100644 index 00000000000..9d4eeda7748 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_already_attributed_doesnot_perform_assertion.php.inc @@ -0,0 +1,12 @@ +mockNetteUser = $this->getMockBuilder(SomeUser::class) + ->getMock(); + + $this->runSomething(); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_expect_not_to_perform_assertions_method_call.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_expect_not_to_perform_assertions_method_call.php.inc new file mode 100644 index 00000000000..1418ffa6c9e --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_expect_not_to_perform_assertions_method_call.php.inc @@ -0,0 +1,17 @@ +expectNotToPerformAssertions(); + + $factory = new Factory(); + + $factory->create(); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_on_mock.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_on_mock.php.inc new file mode 100644 index 00000000000..a94ec4f5fe3 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_on_mock.php.inc @@ -0,0 +1,17 @@ +getMockBuilder(SomeUser::class) + ->getMock(); + + $this->runSomething($mockNetteUser); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_on_mock_property.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_on_mock_property.php.inc new file mode 100644 index 00000000000..7236fcea6f3 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_call_on_mock_property.php.inc @@ -0,0 +1,23 @@ +mockNetteUser = $this->getMockBuilder(SomeUser::class) + ->getMock(); + } + + public function test(): void + { + $this->runSomething($this->mockNetteUser); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_do_test_file_info.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_do_test_file_info.php.inc new file mode 100644 index 00000000000..b56f06c05e4 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_do_test_file_info.php.inc @@ -0,0 +1,27 @@ +doTestFileInfo($fileInfo); + } + + /** + * @return Iterator<\Symplify\SmartFileSystem\SmartFileInfo> + */ + public function provideData(): \Iterator + { + return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + } + + public function provideConfigFilePath(): string + { + return __DIR__ . '/config/symfony-26.php'; + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_existing_annotation.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_existing_annotation.php.inc new file mode 100644 index 00000000000..077c9a39bba --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_existing_annotation.php.inc @@ -0,0 +1,13 @@ +expectOutputString('Hello world!'); + + print 'Hello world!'; + } + + public function testExpectOutputRegex() + { + $this->expectOutputRegex('#^Hello world!$#'); + + print 'Hello world!'; + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_expects.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_expects.php.inc new file mode 100644 index 00000000000..88272c54599 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_expects.php.inc @@ -0,0 +1,20 @@ +createMock(Blah::class); + + $a->expects($this->once())->method('something'); + + (new Other())->whatever($a); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_method_call_with_mock_property.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_method_call_with_mock_property.php.inc new file mode 100644 index 00000000000..4506c513aa2 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_method_call_with_mock_property.php.inc @@ -0,0 +1,25 @@ +mock = $this->createMock('SomeClass'); + } + + public function test() + { + $this->callMockedProperty(); + } + + private function callMockedProperty() + { + $this->mock->expects('something'); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_mock_expectations.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_mock_expectations.php.inc new file mode 100644 index 00000000000..a404d0f1e9d --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_mock_expectations.php.inc @@ -0,0 +1,32 @@ +cache = $this->createMock(CacheInterface::class); + $this->cachedAdapter = new CachedAdapter($this->cache); + } + + public function testDelete(): void + { + $this->cache + ->expects(self::never()) + ->method('has'); + + $this->cachedAdapter->delete('test'); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_prophecy_should.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_prophecy_should.php.inc new file mode 100644 index 00000000000..6e172caecfa --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/skip_prophecy_should.php.inc @@ -0,0 +1,48 @@ +items[] = $test; + } +} + +class Hello { + public function __construct(private Repository $repository) + {} + + public function test(object $test) { + $this->repository->add($test); + } +} + +class HelloTest extends TestCase +{ + use ObjectProphecy; + + private Hello $hello; + + protected function setUp(): void + { + $service = $this->prophesize(Service::class); + $this->hello = new Hello($service->reveal()); + } + + public function testSomething() + { + $test = new \stdClass(); + $this->service->add($test) + ->shouldBeCalled(); + + $this->hello->test($test); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/test_in_annotation.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/test_in_annotation.php.inc new file mode 100644 index 00000000000..1c1ea2e96fb --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Fixture/test_in_annotation.php.inc @@ -0,0 +1,34 @@ + +----- + diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/AbstractClassWithAssert.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/AbstractClassWithAssert.php new file mode 100644 index 00000000000..487d72ef1b1 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/AbstractClassWithAssert.php @@ -0,0 +1,17 @@ +anotherMethod(); + } + private function anotherMethod() + { + $this->assertTrue(\true); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/AbstractClassWithStaticAssert.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/AbstractClassWithStaticAssert.php new file mode 100644 index 00000000000..983fbb4705a --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/AbstractClassWithStaticAssert.php @@ -0,0 +1,17 @@ +cache = $cache; + } + public function delete($key) : bool + { + return $this->cache->delete($key); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/CacheInterface.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/CacheInterface.php new file mode 100644 index 00000000000..bfa02ebb6b2 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/CacheInterface.php @@ -0,0 +1,10 @@ +denormalizer = $denormalizer; + } + public function handle(array $data, string $type) : ?array + { + try { + return $this->denormalizer->denormalize($data, $type); + } catch (\Throwable $throwable) { + return null; + } + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/DenormalizerInterface.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/DenormalizerInterface.php new file mode 100644 index 00000000000..607feb04294 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector/Source/DenormalizerInterface.php @@ -0,0 +1,19 @@ +import(__DIR__ . '/../../../../../config/config.php'); + $rectorConfig->rule(AddDoesNotPerformAssertionToNonAssertingTestRector::class); +}; diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/ExceptionAnnotationRectorTest.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/ExceptionAnnotationRectorTest.php new file mode 100644 index 00000000000..4d9a75573a5 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/ExceptionAnnotationRectorTest.php @@ -0,0 +1,23 @@ +doTestFile($filePath); + } + public static function provideData() : Iterator + { + return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + } + public function provideConfigFilePath() : string + { + return __DIR__ . '/config/configured_rule.php'; + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/constant_code.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/constant_code.php.inc new file mode 100644 index 00000000000..2ee4b4de124 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/constant_code.php.inc @@ -0,0 +1,35 @@ + +----- +expectExceptionCode(SomeConstant::ERROR_CODE); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture.php.inc new file mode 100644 index 00000000000..7d3279a6073 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture.php.inc @@ -0,0 +1,33 @@ + +----- +expectException('FooException'); + // some code + + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture2.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture2.php.inc new file mode 100644 index 00000000000..c19952a45b4 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture2.php.inc @@ -0,0 +1,37 @@ + +----- +expectException('Phpml\Exception\InvalidArgumentException'); + $this->expectExceptionMessage('Invalid operator "~=" provided'); + Comparison::compare(1, 1, '~='); + + // extra line + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture3.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture3.php.inc new file mode 100644 index 00000000000..7280c3c4364 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture3.php.inc @@ -0,0 +1,29 @@ + +----- +expectException(\Exception::class); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture4.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture4.php.inc new file mode 100644 index 00000000000..c68c48bb80c --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture4.php.inc @@ -0,0 +1,63 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace Rector\PHPUnit\Tests\PHPUnit60\Rector\ClassMethod\ExceptionAnnotationRector\Fixture; + +use PHPUnit\Framework\TestCase; + +class ExceptionMessageTest extends TestCase +{ + /** + * @expectedException \Exception + */ + public function testLiteralMessage(): void + { + throw new \Exception('A literal exception message'); + } + + /** + * @expectedException \Exception + */ + public function testPartialMessageBegin(): void + { + throw new \Exception('A partial exception message'); + } +} + +?> +----- + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace Rector\PHPUnit\Tests\PHPUnit60\Rector\ClassMethod\ExceptionAnnotationRector\Fixture; + +use PHPUnit\Framework\TestCase; + +class ExceptionMessageTest extends TestCase +{ + public function testLiteralMessage(): void + { + $this->expectException(\Exception::class); + throw new \Exception('A literal exception message'); + } + + public function testPartialMessageBegin(): void + { + $this->expectException(\Exception::class); + throw new \Exception('A partial exception message'); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture5.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture5.php.inc new file mode 100644 index 00000000000..bdf7cf991e4 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture5.php.inc @@ -0,0 +1,37 @@ + +----- +expectException(\Exception::class); + $this->expectExceptionMessage('Message referencing a method, SomeClass::someMethod'); + throw new \Exception('Message referencing a method, SomeClass::someMethod'); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture6.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture6.php.inc new file mode 100644 index 00000000000..be762c4a31c --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/fixture6.php.inc @@ -0,0 +1,37 @@ + +----- +expectException(\Exception::class); + $this->expectExceptionMessage('SomeClass::someMethod'); + throw new \Exception('Message referencing a method, SomeClass::someMethod'); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/skip_method_with_null_php_doc.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/skip_method_with_null_php_doc.php.inc new file mode 100644 index 00000000000..ee5434ea686 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Fixture/skip_method_with_null_php_doc.php.inc @@ -0,0 +1,21 @@ +expectException('Exception'); + throw new \Exception('A literal exception message'); + } + + // test + + public function testPartialMessageBegin(): void + { + throw new \Exception('A partial exception message'); + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Source/SomeConstant.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Source/SomeConstant.php new file mode 100644 index 00000000000..fcbbd6070a8 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector/Source/SomeConstant.php @@ -0,0 +1,12 @@ +import(__DIR__ . '/../../../../../config/config.php'); + $rectorConfig->rule(ExceptionAnnotationRector::class); +}; diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/DelegateExceptionArgumentsRectorTest.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/DelegateExceptionArgumentsRectorTest.php new file mode 100644 index 00000000000..af12768e3ec --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/DelegateExceptionArgumentsRectorTest.php @@ -0,0 +1,23 @@ +doTestFile($filePath); + } + public static function provideData() : Iterator + { + return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + } + public function provideConfigFilePath() : string + { + return __DIR__ . '/config/configured_rule.php'; + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/bare_method_rename.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/bare_method_rename.php.inc new file mode 100644 index 00000000000..513ad822979 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/bare_method_rename.php.inc @@ -0,0 +1,27 @@ +setExpectedException('FirstException'); + } +} + +?> +----- +expectException('FirstException'); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/message.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/message.php.inc new file mode 100644 index 00000000000..2b9c04c9791 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/message.php.inc @@ -0,0 +1,28 @@ +setExpectedException('SecondException', $message); + } +} + +?> +----- +expectException('SecondException'); + $this->expectExceptionMessage($message); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/message_with_code.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/message_with_code.php.inc new file mode 100644 index 00000000000..e2027b69dd7 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/message_with_code.php.inc @@ -0,0 +1,29 @@ + +----- + diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/regexp.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/regexp.php.inc new file mode 100644 index 00000000000..df9f04cc99d --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/regexp.php.inc @@ -0,0 +1,24 @@ + +----- + diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/self_nested.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/self_nested.php.inc new file mode 100644 index 00000000000..1f7a9f43e81 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/Fixture/self_nested.php.inc @@ -0,0 +1,37 @@ +setExpectedException('SomeException', $message); + } else { + $this->setExpectedException('InvalidArgumentException', $expectedExceptionMessage); + } + } +} + +?> +----- +expectException('SomeException'); + $this->expectExceptionMessage($message); + } else { + $this->expectException('InvalidArgumentException'); + $this->expectExceptionMessage($expectedExceptionMessage); + } + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/config/configured_rule.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/config/configured_rule.php new file mode 100644 index 00000000000..68c8034364c --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector/config/configured_rule.php @@ -0,0 +1,11 @@ +import(__DIR__ . '/../../../../../../config/config.php'); + $rectorConfig->rule(DelegateExceptionArgumentsRector::class); +}; diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/fixture.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/fixture.php.inc new file mode 100644 index 00000000000..638e6b9015f --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/fixture.php.inc @@ -0,0 +1,32 @@ +getMockBuilder('SomeClass') + ->disableOriginalConstructor() + ->disableOriginalClone() + ->disableArgumentCloning() + ->disallowMockingUnknownTypes() + ->getMock(); + } +} + +?> +----- +createMock('SomeClass'); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/get_mock_only.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/get_mock_only.php.inc new file mode 100644 index 00000000000..a668d7956a5 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/get_mock_only.php.inc @@ -0,0 +1,28 @@ +getMockBuilder('SomeClass') + ->getMock(); + } +} + +?> +----- +createMock('SomeClass'); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/skip_set_methods.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/skip_set_methods.php.inc new file mode 100644 index 00000000000..a254b95dba8 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/Fixture/skip_set_methods.php.inc @@ -0,0 +1,16 @@ +getMockBuilder('SomeClass') + ->disableOriginalConstructor() + ->setMethods(['addViolation']) + ->getMock(); + } +} + +?> diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/GetMockBuilderGetMockToCreateMockRectorTest.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/GetMockBuilderGetMockToCreateMockRectorTest.php new file mode 100644 index 00000000000..176990fe8e5 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/GetMockBuilderGetMockToCreateMockRectorTest.php @@ -0,0 +1,23 @@ +doTestFile($filePath); + } + public static function provideData() : Iterator + { + return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + } + public function provideConfigFilePath() : string + { + return __DIR__ . '/config/configured_rule.php'; + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/config/configured_rule.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/config/configured_rule.php new file mode 100644 index 00000000000..1eb24993ca2 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit60/Rector/MethodCall/GetMockBuilderGetMockToCreateMockRector/config/configured_rule.php @@ -0,0 +1,11 @@ +import(__DIR__ . '/../../../../../config/config.php'); + $rectorConfig->rule(GetMockBuilderGetMockToCreateMockRector::class); +}; diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/fixture.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/fixture.php.inc new file mode 100644 index 00000000000..59a88a06d61 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/fixture.php.inc @@ -0,0 +1,43 @@ + +----- + diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/multiple_data_providers.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/multiple_data_providers.php.inc new file mode 100644 index 00000000000..7ee993a4b63 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/multiple_data_providers.php.inc @@ -0,0 +1,67 @@ + +----- + diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/with_test_annotation.php.inc b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/with_test_annotation.php.inc new file mode 100644 index 00000000000..618adff0658 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/Fixture/with_test_annotation.php.inc @@ -0,0 +1,45 @@ + +----- + diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/RemoveDataProviderTestPrefixRectorTest.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/RemoveDataProviderTestPrefixRectorTest.php new file mode 100644 index 00000000000..9e6073c950d --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/RemoveDataProviderTestPrefixRectorTest.php @@ -0,0 +1,23 @@ +doTestFile($filePath); + } + public static function provideData() : Iterator + { + return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + } + public function provideConfigFilePath() : string + { + return __DIR__ . '/config/configured_rule.php'; + } +} diff --git a/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/config/configured_rule.php b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/config/configured_rule.php new file mode 100644 index 00000000000..05790eb9957 --- /dev/null +++ b/vendor/rector/rector-phpunit/rules-tests/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector/config/configured_rule.php @@ -0,0 +1,11 @@ +import(__DIR__ . '/../../../../../../config/config.php'); + $rectorConfig->rule(RemoveDataProviderTestPrefixRector::class); +}; diff --git a/vendor/rector/rector-phpunit/src/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php b/vendor/rector/rector-phpunit/rules/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php similarity index 94% rename from vendor/rector/rector-phpunit/src/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php rename to vendor/rector/rector-phpunit/rules/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php index d24dc4ce22c..b205f2a2b67 100644 --- a/vendor/rector/rector-phpunit/src/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php +++ b/vendor/rector/rector-phpunit/rules/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php @@ -1,7 +1,7 @@ testsNodeAnalyzer->isInTestClass($node)) { return null; } - $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node); + $phpDocInfo = $this->phpDocInfoFactory->createFromNode($node); + if (!$phpDocInfo instanceof PhpDocInfo) { + return null; + } $hasChanged = \false; foreach (self::ANNOTATION_TO_METHOD as $annotationName => $methodName) { if (!$phpDocInfo->hasByName($annotationName)) { diff --git a/vendor/rector/rector-phpunit/src/Rector/MethodCall/DelegateExceptionArgumentsRector.php b/vendor/rector/rector-phpunit/rules/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector.php similarity index 95% rename from vendor/rector/rector-phpunit/src/Rector/MethodCall/DelegateExceptionArgumentsRector.php rename to vendor/rector/rector-phpunit/rules/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector.php index 83bbe8b10d3..cde7a00ebc6 100644 --- a/vendor/rector/rector-phpunit/src/Rector/MethodCall/DelegateExceptionArgumentsRector.php +++ b/vendor/rector/rector-phpunit/rules/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector.php @@ -1,7 +1,7 @@