File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010abstract class AbstractVisitorTest extends TestCase
1111{
12- abstract public function getVisitors (): NodeVisitor ;
12+ abstract public function getVisitor (): NodeVisitor ;
1313 abstract public function getResource (): iterable |string ;
1414 abstract public function assertCatalogue (MessageCatalogue $ catalogue ): void ;
1515
1616 public function testVisitor ()
1717 {
18- $ extractor = new PhpAstExtractor ([$ this ->getVisitors ()]);
18+ $ extractor = new PhpAstExtractor ([$ this ->getVisitor ()]);
1919 $ extractor ->setPrefix ('prefix ' );
2020 $ catalogue = new MessageCatalogue ('en ' );
2121
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class ConstraintVisitorTest extends AbstractVisitorTest
1010{
1111 private const FIXTURES_FOLDER = __DIR__ . '/../../Fixtures/extractor-php-ast/constraint-visitor/ ' ;
1212
13- public function getVisitors (): NodeVisitor
13+ public function getVisitor (): NodeVisitor
1414 {
1515 return new ConstraintVisitor (['NotBlank ' , 'Isbn ' , 'Length ' ]);
1616 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class FormTypeVisitorTest extends AbstractVisitorTest
1111{
1212 private const FIXTURES_FOLDER = __DIR__ . '/../../Fixtures/extractor-php-ast/form-type-visitor/ ' ;
1313
14- public function getVisitors (): FormTypeVisitor
14+ public function getVisitor (): FormTypeVisitor
1515 {
1616 return new FormTypeVisitor ();
1717 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class TransMethodVisitorTest extends AbstractVisitorTest
1111 private const FIXTURES_FOLDER = __DIR__ . '/../../Fixtures/extractor-php-ast/trans-method-visitor/ ' ;
1212 public const OTHER_DOMAIN = 'not_messages ' ;
1313
14- public function getVisitors (): NodeVisitor
14+ public function getVisitor (): NodeVisitor
1515 {
1616 return new TransMethodVisitor ();
1717 }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class TranslatableMessageVisitorTest extends AbstractVisitorTest
1111{
1212 private const FIXTURES_FOLDER = __DIR__ . '/../../Fixtures/extractor-php-ast/translatable-message-visitor/ ' ;
1313
14- public function getVisitors (): NodeVisitor
14+ public function getVisitor (): NodeVisitor
1515 {
1616 return new TranslatableMessageVisitor ();
1717 }
You can’t perform that action at this time.
0 commit comments