<commit_before><?php declare(strict_types=1);

namespace Rector\Tests\NodeAnalyzer;

use PhpParser\Node\Stmt\Class_;
use Rector\NodeAnalyzer\ClassLikeAnalyzer;
use Rector\Tests\AbstractContainerAwareTestCase;

final class ClassLikeAnalyzerTest extends AbstractContainerAwareTestCase
{
    /**
     * @var ClassLikeAnalyzer
     */
    private $classLikeAnalyzer;

    protected function setUp(): void
    {
        $this->classLikeAnalyzer = $this->container->get(ClassLikeAnalyzer::class);
    }

    public function testAnonymousClass(): void
    {
        $this->classLikeAnalyzer->isAnonymousClassNode(new Class_(null));
    }
}<commit_msg>fix ClassLikeAnalyzerTest<commit_after><?php declare(strict_types=1);

namespace Rector\Tests\NodeAnalyzer;

use PhpParser\Node\Stmt\Class_;
use Rector\NodeAnalyzer\ClassLikeAnalyzer;
use Rector\Tests\AbstractContainerAwareTestCase;

final class ClassLikeAnalyzerTest extends AbstractContainerAwareTestCase
{
    /**
     * @var ClassLikeAnalyzer
     */
    private $classLikeAnalyzer;

    protected function setUp(): void
    {
        $this->classLikeAnalyzer = $this->container->get(ClassLikeAnalyzer::class);
    }

    public function test(): void
    {
        $this->assertTrue($this->classLikeAnalyzer->isAnonymousClassNode(new Class_(null)));
        $this->assertFalse($this->classLikeAnalyzer->isAnonymousClassNode(new Class_('SomeClass')));
    }
}
{'fraction_non_alphanumeric': 0.11095305832147938, 'fraction_numerical': 0.001422475106685633, 'mean_word_length': 4.539370078740157, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '2225785', 'n_tokens_mistral': 414, 'n_tokens_neox': 409, 'n_words': 65}