<commit_before><commit_msg>Basic tests for the `StaticClassNameConverterTest`<commit_after><?php

declare(strict_types=1);

namespace Doctrine\Tests\ORM\Utility;

use Doctrine\ORM\Utility\StaticClassNameConverter;
use PHPUnit\Framework\TestCase;

/**
 * @covers \Doctrine\ORM\Utility\StaticClassNameConverter
 */
class StaticClassNameConverterTest extends TestCase
{
    /**
     * @dataProvider classNamesProvider
     */
    public function testClassNameConversion(string $givenClassName, string $expectedClassName) : void
    {
        self::assertSame($expectedClassName, StaticClassNameConverter::getRealClass($givenClassName));
    }

    public function classNamesProvider() : array
    {
        return [
            ['foo', 'foo'],
            ['foo__PM__bar', 'foo__PM__bar'],
            ['foo\\__PM__\\baz\\bar', 'baz'],
            ['foo\\__PM__\\baz\\bar\\taz', 'baz\\bar'],
            ['foo\\aaa\\__PM__\\baz\\bar\\taz', 'baz\\bar'],
        ];
    }
}
{'fraction_non_alphanumeric': 0.14566115702479338, 'fraction_numerical': 0.0010330578512396695, 'mean_word_length': 3.1587982832618025, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4044385', 'n_tokens_mistral': 288, 'n_tokens_neox': 278, 'n_words': 44}