mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
24 lines
666 B
PHP
24 lines
666 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Rector\Tests\NodeVisitor\DependencyInjection\InjectAnnotationToConstructorReconstructor;
|
|
|
|
use Rector\NodeVisitor\DependencyInjection\InjectAnnotationToConstructorNodeVisitor;
|
|
use Rector\Testing\PHPUnit\AbstractReconstructorTestCase;
|
|
|
|
final class Test extends AbstractReconstructorTestCase
|
|
{
|
|
public function test(): void
|
|
{
|
|
$this->doTestFileMatchesExpectedContent(
|
|
__DIR__ . '/wrong/wrong.php.inc',
|
|
__DIR__ . '/correct/correct.php.inc'
|
|
);
|
|
}
|
|
|
|
protected function getNodeVisitorClass(): string
|
|
{
|
|
return InjectAnnotationToConstructorNodeVisitor::class;
|
|
}
|
|
}
|
|
|