Skip to content

Commit 9e34c67

Browse files
committed
cs
1 parent 6c6d6ea commit 9e34c67

File tree

5 files changed

+52
-16
lines changed

5 files changed

+52
-16
lines changed

src/Symfony/Component/Translation/Tests/Extractor/PhpAstExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
final class PhpAstExtractorTest extends TestCase
2121
{
22-
private const FIXTURES_FOLDER = __DIR__ . '/../Fixtures/extractor-php-ast/extract-files/';
22+
private const FIXTURES_FOLDER = __DIR__.'/../Fixtures/extractor-php-ast/extract-files/';
2323

2424
#[DataProvider('resourcesProvider')]
2525
public function testExtractFiles(iterable|string $resource)

src/Symfony/Component/Translation/Tests/Extractor/Visitor/AbstractVisitorTestCase.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Translation\Tests\Extractor\Visitor;
413

514
use PhpParser\NodeVisitor;

src/Symfony/Component/Translation/Tests/Extractor/Visitor/ConstraintVisitorTest.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Translation\Tests\Extractor\Visitor;
413

514
use Symfony\Component\Translation\Extractor\Visitor\ConstraintVisitor;
615

716
final class ConstraintVisitorTest extends AbstractVisitorTestCase
817
{
9-
private const FIXTURES_FOLDER = __DIR__ . '/../../Fixtures/extractor-php-ast/constraint-visitor/';
18+
private const FIXTURES_FOLDER = __DIR__.'/../../Fixtures/extractor-php-ast/constraint-visitor/';
1019

1120
public function testExtractMessages()
1221
{
@@ -32,6 +41,6 @@ public function testExtractMessages()
3241
$catalogue->all(),
3342
);
3443

35-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'validator-constraints.php:7']], $catalogue->getMetadata('message-in-constraint-attribute', 'validators'));
44+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'validator-constraints.php:7']], $catalogue->getMetadata('message-in-constraint-attribute', 'validators'));
3645
}
3746
}

src/Symfony/Component/Translation/Tests/Extractor/Visitor/TransMethodVisitorTest.php

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Translation\Tests\Extractor\Visitor;
413

514
use Symfony\Component\Translation\Extractor\Visitor\TransMethodVisitor;
615

716
final class TransMethodVisitorTest extends AbstractVisitorTestCase
817
{
9-
private const FIXTURES_FOLDER = __DIR__ . '/../../Fixtures/extractor-php-ast/trans-method-visitor/';
18+
private const FIXTURES_FOLDER = __DIR__.'/../../Fixtures/extractor-php-ast/trans-method-visitor/';
1019
public const OTHER_DOMAIN = 'not_messages';
1120

1221
public function testExtractMessages()
@@ -92,14 +101,14 @@ public function testExtractMessages()
92101
$catalogue->all(),
93102
);
94103

95-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translation.html.php:2']], $catalogue->getMetadata('single-quoted key'));
96-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translation.html.php:37']], $catalogue->getMetadata('other-domain-test-no-params-short-array', 'not_messages'));
97-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translation-73.html.php:8']], $catalogue->getMetadata("nowdoc\nindented\n further"));
104+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translation.html.php:2']], $catalogue->getMetadata('single-quoted key'));
105+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translation.html.php:37']], $catalogue->getMetadata('other-domain-test-no-params-short-array', 'not_messages'));
106+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translation-73.html.php:8']], $catalogue->getMetadata("nowdoc\nindented\n further"));
98107

99-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translatable-short.html.php:2']], $catalogue->getMetadata('translatable-short single-quoted key'));
100-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translatable-short.html.php:37']], $catalogue->getMetadata('translatable-short other-domain-test-no-params-short-array', 'not_messages'));
108+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translatable-short.html.php:2']], $catalogue->getMetadata('translatable-short single-quoted key'));
109+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translatable-short.html.php:37']], $catalogue->getMetadata('translatable-short other-domain-test-no-params-short-array', 'not_messages'));
101110

102-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translatable-short-fqn.html.php:2']], $catalogue->getMetadata('translatable-short-fqn single-quoted key'));
103-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translatable-short-fqn.html.php:37']], $catalogue->getMetadata('translatable-short-fqn other-domain-test-no-params-short-array', 'not_messages'));
111+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translatable-short-fqn.html.php:2']], $catalogue->getMetadata('translatable-short-fqn single-quoted key'));
112+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translatable-short-fqn.html.php:37']], $catalogue->getMetadata('translatable-short-fqn other-domain-test-no-params-short-array', 'not_messages'));
104113
}
105114
}

src/Symfony/Component/Translation/Tests/Extractor/Visitor/TranslatableMessageVisitorTest.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Translation\Tests\Extractor\Visitor;
413

514
use Symfony\Component\Translation\Extractor\Visitor\TranslatableMessageVisitor;
615

716
final class TranslatableMessageVisitorTest extends AbstractVisitorTestCase
817
{
9-
private const FIXTURES_FOLDER = __DIR__ . '/../../Fixtures/extractor-php-ast/translatable-message-visitor/';
18+
private const FIXTURES_FOLDER = __DIR__.'/../../Fixtures/extractor-php-ast/translatable-message-visitor/';
1019

1120
public function testExtractMessages()
1221
{
@@ -61,10 +70,10 @@ public function testExtractMessages()
6170
$catalogue->all(),
6271
);
6372

64-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translatable.html.php:3']], $catalogue->getMetadata('translatable single-quoted key'));
65-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translatable.html.php:38']], $catalogue->getMetadata('translatable other-domain-test-no-params-short-array', 'not_messages'));
73+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translatable.html.php:3']], $catalogue->getMetadata('translatable single-quoted key'));
74+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translatable.html.php:38']], $catalogue->getMetadata('translatable other-domain-test-no-params-short-array', 'not_messages'));
6675

67-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translatable-fqn.html.php:2']], $catalogue->getMetadata('translatable-fqn single-quoted key'));
68-
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER . 'translatable-fqn.html.php:37']], $catalogue->getMetadata('translatable-fqn other-domain-test-no-params-short-array', 'not_messages'));
76+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translatable-fqn.html.php:2']], $catalogue->getMetadata('translatable-fqn single-quoted key'));
77+
$this->assertEquals(['sources' => [self::FIXTURES_FOLDER.'translatable-fqn.html.php:37']], $catalogue->getMetadata('translatable-fqn other-domain-test-no-params-short-array', 'not_messages'));
6978
}
7079
}

0 commit comments

Comments
 (0)