<commit_before>imports:
    - { resource: 'phpunit-exception.yaml' }

services:
    # ref. https://github.com/sebastianbergmann/phpunit/compare/5.7.9...6.0.0
    Rector\Core\Rector\Namespace_\PseudoNamespaceToNamespaceRector:
        $namespacePrefixesWithExcludedClasses:
            PHPUnit_:
                # exclude this class, since it has no namespaced replacement
                - 'PHPUnit_Framework_MockObject_MockObject'

    Rector\PHPUnit\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector: null
    Rector\PHPUnit\Rector\MethodCall\GetMockBuilderGetMockToCreateMockRector: null<commit_msg>[PHPUnit] Extends namespace migration with exact class rename<commit_after>imports:
    - { resource: 'phpunit-exception.yaml' }

services:
    Rector\Renaming\Rector\Class_\RenameClassRector:
        $oldToNewClasses:
            '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'

    # ref. https://github.com/sebastianbergmann/phpunit/compare/5.7.9...6.0.0
    Rector\Core\Rector\Namespace_\PseudoNamespaceToNamespaceRector:
        $namespacePrefixesWithExcludedClasses:
            PHPUnit_:
                # exclude this class, since it has no namespaced replacement
                - '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'

    Rector\PHPUnit\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector: null
    Rector\PHPUnit\Rector\MethodCall\GetMockBuilderGetMockToCreateMockRector: null
{'fraction_non_alphanumeric': 0.07838070628768304, 'fraction_numerical': 0.00516795865633075, 'mean_word_length': 3.7024291497975708, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6323758', 'n_tokens_mistral': 674, 'n_tokens_neox': 661, 'n_words': 71}