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