From ae5927a876bac981eda18d114445fb0d2b26e509 Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Fri, 27 Oct 2023 12:31:04 +0200 Subject: [PATCH] DX: re-apply concat_space --- .../Tests/Dumper/CsvFileDumperTest.php | 2 +- .../Tests/Dumper/IcuResFileDumperTest.php | 2 +- .../Tests/Dumper/IniFileDumperTest.php | 2 +- .../Tests/Dumper/JsonFileDumperTest.php | 4 +-- .../Tests/Dumper/MoFileDumperTest.php | 2 +- .../Tests/Dumper/PhpFileDumperTest.php | 2 +- .../Tests/Dumper/PoFileDumperTest.php | 4 +-- .../Tests/Dumper/QtFileDumperTest.php | 2 +- .../Tests/Dumper/XliffFileDumperTest.php | 14 ++++---- .../Tests/Dumper/YamlFileDumperTest.php | 4 +-- .../Tests/Extractor/PhpAstExtractorTest.php | 4 +-- .../Tests/Extractor/PhpExtractorTest.php | 4 +-- .../Tests/Loader/CsvFileLoaderTest.php | 6 ++-- .../Tests/Loader/IcuDatFileLoaderTest.php | 8 ++--- .../Tests/Loader/IcuResFileLoaderTest.php | 6 ++-- .../Tests/Loader/IniFileLoaderTest.php | 6 ++-- .../Tests/Loader/JsonFileLoaderTest.php | 8 ++--- .../Tests/Loader/MoFileLoaderTest.php | 10 +++--- .../Tests/Loader/PhpFileLoaderTest.php | 4 +-- .../Tests/Loader/PoFileLoaderTest.php | 18 +++++----- .../Tests/Loader/QtFileLoaderTest.php | 8 ++--- .../Tests/Loader/XliffFileLoaderTest.php | 36 +++++++++---------- .../Tests/Loader/YamlFileLoaderTest.php | 10 +++--- .../Translation/Tests/TranslatorTest.php | 18 +++++----- .../Tests/Dumper/PlantUmlDumperTest.php | 2 +- 25 files changed, 93 insertions(+), 93 deletions(-) diff --git a/src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php index f70c6fdbdd0a3..4a637eaa4a67c 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/CsvFileDumperTest.php @@ -25,6 +25,6 @@ public function testFormatCatalogue() $dumper = new CsvFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/valid.csv', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/valid.csv', $dumper->formatCatalogue($catalogue, 'messages')); } } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php index 229d048fdf059..8e696a724b03c 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/IcuResFileDumperTest.php @@ -24,6 +24,6 @@ public function testFormatCatalogue() $dumper = new IcuResFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/resourcebundle/res/en.res', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resourcebundle/res/en.res', $dumper->formatCatalogue($catalogue, 'messages')); } } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php index caf3ef2d831bd..d6e87fd766669 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/IniFileDumperTest.php @@ -24,6 +24,6 @@ public function testFormatCatalogue() $dumper = new IniFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/resources.ini', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.ini', $dumper->formatCatalogue($catalogue, 'messages')); } } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php index 6fff2888b6aa7..e608706f42b9f 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/JsonFileDumperTest.php @@ -24,7 +24,7 @@ public function testFormatCatalogue() $dumper = new JsonFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/resources.json', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.json', $dumper->formatCatalogue($catalogue, 'messages')); } public function testDumpWithCustomEncoding() @@ -34,6 +34,6 @@ public function testDumpWithCustomEncoding() $dumper = new JsonFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/resources.dump.json', $dumper->formatCatalogue($catalogue, 'messages', ['json_encoding' => \JSON_HEX_QUOT])); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.dump.json', $dumper->formatCatalogue($catalogue, 'messages', ['json_encoding' => \JSON_HEX_QUOT])); } } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php index 6a1e277865970..61c7f5422fe1c 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/MoFileDumperTest.php @@ -24,6 +24,6 @@ public function testFormatCatalogue() $dumper = new MoFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/resources.mo', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.mo', $dumper->formatCatalogue($catalogue, 'messages')); } } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php index 23c19337503bb..1913795407d1b 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/PhpFileDumperTest.php @@ -24,6 +24,6 @@ public function testFormatCatalogue() $dumper = new PhpFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/resources.php', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.php', $dumper->formatCatalogue($catalogue, 'messages')); } } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php index 5fecd8b3208ae..ad6f47d98bda4 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/PoFileDumperTest.php @@ -43,7 +43,7 @@ public function testFormatCatalogue() $dumper = new PoFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/resources.po', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.po', $dumper->formatCatalogue($catalogue, 'messages')); } public function testDumpPlurals() @@ -56,6 +56,6 @@ public function testDumpPlurals() $dumper = new PoFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/plurals.po', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/plurals.po', $dumper->formatCatalogue($catalogue, 'messages')); } } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php index 5bfa85be5904c..444a4bdc2d83b 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/QtFileDumperTest.php @@ -43,6 +43,6 @@ public function testFormatCatalogue() $dumper = new QtFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/resources.ts', $dumper->formatCatalogue($catalogue, 'resources')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/resources.ts', $dumper->formatCatalogue($catalogue, 'resources')); } } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php index 3c9f5bef2d877..f9ae8986f52fe 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/XliffFileDumperTest.php @@ -31,7 +31,7 @@ public function testFormatCatalogue() $dumper = new XliffFileDumper(); $this->assertStringEqualsFile( - __DIR__ . '/../Fixtures/resources-clean.xlf', + __DIR__.'/../Fixtures/resources-clean.xlf', $dumper->formatCatalogue($catalogue, 'messages', ['default_locale' => 'fr_FR']) ); } @@ -50,7 +50,7 @@ public function testFormatCatalogueXliff2() $dumper = new XliffFileDumper(); $this->assertStringEqualsFile( - __DIR__ . '/../Fixtures/resources-2.0-clean.xlf', + __DIR__.'/../Fixtures/resources-2.0-clean.xlf', $dumper->formatCatalogue($catalogue, 'messages', ['default_locale' => 'fr_FR', 'xliff_version' => '2.0']) ); } @@ -65,7 +65,7 @@ public function testFormatIcuCatalogueXliff2() $dumper = new XliffFileDumper(); $this->assertStringEqualsFile( - __DIR__ . '/../Fixtures/resources-2.0+intl-icu.xlf', + __DIR__.'/../Fixtures/resources-2.0+intl-icu.xlf', $dumper->formatCatalogue($catalogue, 'messages'.MessageCatalogue::INTL_DOMAIN_SUFFIX, ['default_locale' => 'fr_FR', 'xliff_version' => '2.0']) ); } @@ -83,7 +83,7 @@ public function testFormatCatalogueWithCustomToolInfo() $dumper = new XliffFileDumper(); $this->assertStringEqualsFile( - __DIR__ . '/../Fixtures/resources-tool-info.xlf', + __DIR__.'/../Fixtures/resources-tool-info.xlf', $dumper->formatCatalogue($catalogue, 'messages', $options) ); } @@ -99,7 +99,7 @@ public function testFormatCatalogueWithTargetAttributesMetadata() $dumper = new XliffFileDumper(); $this->assertStringEqualsFile( - __DIR__ . '/../Fixtures/resources-target-attributes.xlf', + __DIR__.'/../Fixtures/resources-target-attributes.xlf', $dumper->formatCatalogue($catalogue, 'messages', ['default_locale' => 'fr_FR']) ); } @@ -124,7 +124,7 @@ public function testFormatCatalogueWithNotesMetadata() $dumper = new XliffFileDumper(); $this->assertStringEqualsFile( - __DIR__ . '/../Fixtures/resources-notes-meta.xlf', + __DIR__.'/../Fixtures/resources-notes-meta.xlf', $dumper->formatCatalogue($catalogue, 'messages', ['default_locale' => 'fr_FR', 'xliff_version' => '2.0']) ); } @@ -143,7 +143,7 @@ public function testDumpCatalogueWithXliffExtension() $dumper = new XliffFileDumper('xliff'); $this->assertStringEqualsFile( - __DIR__ . '/../Fixtures/resources-clean.xliff', + __DIR__.'/../Fixtures/resources-clean.xliff', $dumper->formatCatalogue($catalogue, 'messages', ['default_locale' => 'fr_FR']) ); } diff --git a/src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php b/src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php index 6ecb2c3344209..65f0283f7b126 100644 --- a/src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php +++ b/src/Symfony/Component/Translation/Tests/Dumper/YamlFileDumperTest.php @@ -27,7 +27,7 @@ public function testTreeFormatCatalogue() $dumper = new YamlFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/messages.yml', $dumper->formatCatalogue($catalogue, 'messages', ['as_tree' => true, 'inline' => 999])); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/messages.yml', $dumper->formatCatalogue($catalogue, 'messages', ['as_tree' => true, 'inline' => 999])); } public function testLinearFormatCatalogue() @@ -40,6 +40,6 @@ public function testLinearFormatCatalogue() $dumper = new YamlFileDumper(); - $this->assertStringEqualsFile(__DIR__ . '/../Fixtures/messages_linear.yml', $dumper->formatCatalogue($catalogue, 'messages')); + $this->assertStringEqualsFile(__DIR__.'/../Fixtures/messages_linear.yml', $dumper->formatCatalogue($catalogue, 'messages')); } } diff --git a/src/Symfony/Component/Translation/Tests/Extractor/PhpAstExtractorTest.php b/src/Symfony/Component/Translation/Tests/Extractor/PhpAstExtractorTest.php index 380bdee26bc99..d808a365ac383 100644 --- a/src/Symfony/Component/Translation/Tests/Extractor/PhpAstExtractorTest.php +++ b/src/Symfony/Component/Translation/Tests/Extractor/PhpAstExtractorTest.php @@ -175,7 +175,7 @@ public function testExtractionFromIndentedHeredocNowdoc() ], new TranslatableMessageVisitor()), ]); $extractor->setPrefix('prefix'); - $extractor->extract(__DIR__ . '/../Fixtures/extractor-7.3/translation.html.php', $catalogue); + $extractor->extract(__DIR__.'/../Fixtures/extractor-7.3/translation.html.php', $catalogue); $expectedCatalogue = [ 'messages' => [ @@ -189,7 +189,7 @@ public function testExtractionFromIndentedHeredocNowdoc() public static function resourcesProvider(): array { - $directory = __DIR__ . '/../Fixtures/extractor-ast/'; + $directory = __DIR__.'/../Fixtures/extractor-ast/'; $phpFiles = []; $splFiles = []; foreach (new \DirectoryIterator($directory) as $fileInfo) { diff --git a/src/Symfony/Component/Translation/Tests/Extractor/PhpExtractorTest.php b/src/Symfony/Component/Translation/Tests/Extractor/PhpExtractorTest.php index 85d538f929837..14a9af3bc416a 100644 --- a/src/Symfony/Component/Translation/Tests/Extractor/PhpExtractorTest.php +++ b/src/Symfony/Component/Translation/Tests/Extractor/PhpExtractorTest.php @@ -139,7 +139,7 @@ public function testExtractionFromIndentedHeredocNowdoc() $extractor = new PhpExtractor(); $extractor->setPrefix('prefix'); - $extractor->extract(__DIR__ . '/../Fixtures/extractor-7.3/translation.html.php', $catalogue); + $extractor->extract(__DIR__.'/../Fixtures/extractor-7.3/translation.html.php', $catalogue); $expectedCatalogue = [ 'messages' => [ @@ -153,7 +153,7 @@ public function testExtractionFromIndentedHeredocNowdoc() public static function resourcesProvider() { - $directory = __DIR__ . '/../Fixtures/extractor/'; + $directory = __DIR__.'/../Fixtures/extractor/'; $phpFiles = []; $splFiles = []; foreach (new \DirectoryIterator($directory) as $fileInfo) { diff --git a/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php index e684e7ce9ff54..332d5a4d9330a 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/CsvFileLoaderTest.php @@ -22,7 +22,7 @@ class CsvFileLoaderTest extends TestCase public function testLoad() { $loader = new CsvFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.csv'; + $resource = __DIR__.'/../Fixtures/resources.csv'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1')); @@ -33,7 +33,7 @@ public function testLoad() public function testLoadDoesNothingIfEmpty() { $loader = new CsvFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty.csv'; + $resource = __DIR__.'/../Fixtures/empty.csv'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals([], $catalogue->all('domain1')); @@ -45,7 +45,7 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new CsvFileLoader(); - $resource = __DIR__ . '/../Fixtures/not-exists.csv'; + $resource = __DIR__.'/../Fixtures/not-exists.csv'; $loader->load($resource, 'en', 'domain1'); } diff --git a/src/Symfony/Component/Translation/Tests/Loader/IcuDatFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/IcuDatFileLoaderTest.php index accfa5d4d3a54..fca84fa5bf8a5 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/IcuDatFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/IcuDatFileLoaderTest.php @@ -25,7 +25,7 @@ public function testLoadInvalidResource() { $this->expectException(InvalidResourceException::class); $loader = new IcuDatFileLoader(); - $loader->load(__DIR__ . '/../Fixtures/resourcebundle/corrupted/resources', 'es', 'domain2'); + $loader->load(__DIR__.'/../Fixtures/resourcebundle/corrupted/resources', 'es', 'domain2'); } public function testDatEnglishLoad() @@ -34,7 +34,7 @@ public function testDatEnglishLoad() // you must specify an temporary build directory which is not the same as current directory and // MUST reside on the same partition. pkgdata -p resources -T /srv -d.packagelist.txt $loader = new IcuDatFileLoader(); - $resource = __DIR__ . '/../Fixtures/resourcebundle/dat/resources'; + $resource = __DIR__.'/../Fixtures/resourcebundle/dat/resources'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['symfony' => 'Symfony 2 is great'], $catalogue->all('domain1')); @@ -45,7 +45,7 @@ public function testDatEnglishLoad() public function testDatFrenchLoad() { $loader = new IcuDatFileLoader(); - $resource = __DIR__ . '/../Fixtures/resourcebundle/dat/resources'; + $resource = __DIR__.'/../Fixtures/resourcebundle/dat/resources'; $catalogue = $loader->load($resource, 'fr', 'domain1'); $this->assertEquals(['symfony' => 'Symfony 2 est génial'], $catalogue->all('domain1')); @@ -57,6 +57,6 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new IcuDatFileLoader(); - $loader->load(__DIR__ . '/../Fixtures/non-existing.txt', 'en', 'domain1'); + $loader->load(__DIR__.'/../Fixtures/non-existing.txt', 'en', 'domain1'); } } diff --git a/src/Symfony/Component/Translation/Tests/Loader/IcuResFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/IcuResFileLoaderTest.php index 0b2f9069146a9..7bce83211ea1a 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/IcuResFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/IcuResFileLoaderTest.php @@ -25,7 +25,7 @@ public function testLoad() { // resource is build using genrb command $loader = new IcuResFileLoader(); - $resource = __DIR__ . '/../Fixtures/resourcebundle/res'; + $resource = __DIR__.'/../Fixtures/resourcebundle/res'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1')); @@ -37,13 +37,13 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new IcuResFileLoader(); - $loader->load(__DIR__ . '/../Fixtures/non-existing.txt', 'en', 'domain1'); + $loader->load(__DIR__.'/../Fixtures/non-existing.txt', 'en', 'domain1'); } public function testLoadInvalidResource() { $this->expectException(InvalidResourceException::class); $loader = new IcuResFileLoader(); - $loader->load(__DIR__ . '/../Fixtures/resourcebundle/corrupted', 'en', 'domain1'); + $loader->load(__DIR__.'/../Fixtures/resourcebundle/corrupted', 'en', 'domain1'); } } diff --git a/src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php index 5d761ae20a3ab..cfac4903a7207 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/IniFileLoaderTest.php @@ -21,7 +21,7 @@ class IniFileLoaderTest extends TestCase public function testLoad() { $loader = new IniFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.ini'; + $resource = __DIR__.'/../Fixtures/resources.ini'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1')); @@ -32,7 +32,7 @@ public function testLoad() public function testLoadDoesNothingIfEmpty() { $loader = new IniFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty.ini'; + $resource = __DIR__.'/../Fixtures/empty.ini'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals([], $catalogue->all('domain1')); @@ -44,7 +44,7 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new IniFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-existing.ini'; + $resource = __DIR__.'/../Fixtures/non-existing.ini'; $loader->load($resource, 'en', 'domain1'); } } diff --git a/src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php index ed82f9cf94305..54f08a741a75d 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/JsonFileLoaderTest.php @@ -22,7 +22,7 @@ class JsonFileLoaderTest extends TestCase public function testLoad() { $loader = new JsonFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.json'; + $resource = __DIR__.'/../Fixtures/resources.json'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1')); @@ -33,7 +33,7 @@ public function testLoad() public function testLoadDoesNothingIfEmpty() { $loader = new JsonFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty.json'; + $resource = __DIR__.'/../Fixtures/empty.json'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals([], $catalogue->all('domain1')); @@ -45,7 +45,7 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new JsonFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-existing.json'; + $resource = __DIR__.'/../Fixtures/non-existing.json'; $loader->load($resource, 'en', 'domain1'); } @@ -54,7 +54,7 @@ public function testParseException() $this->expectException(InvalidResourceException::class); $this->expectExceptionMessage('Error parsing JSON: Syntax error, malformed JSON'); $loader = new JsonFileLoader(); - $resource = __DIR__ . '/../Fixtures/malformed.json'; + $resource = __DIR__.'/../Fixtures/malformed.json'; $loader->load($resource, 'en', 'domain1'); } } diff --git a/src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php index 7432ed4a7d311..562ea0e478d38 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/MoFileLoaderTest.php @@ -22,7 +22,7 @@ class MoFileLoaderTest extends TestCase public function testLoad() { $loader = new MoFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.mo'; + $resource = __DIR__.'/../Fixtures/resources.mo'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1')); @@ -33,7 +33,7 @@ public function testLoad() public function testLoadPlurals() { $loader = new MoFileLoader(); - $resource = __DIR__ . '/../Fixtures/plurals.mo'; + $resource = __DIR__.'/../Fixtures/plurals.mo'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals([ @@ -48,7 +48,7 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new MoFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-existing.mo'; + $resource = __DIR__.'/../Fixtures/non-existing.mo'; $loader->load($resource, 'en', 'domain1'); } @@ -56,14 +56,14 @@ public function testLoadInvalidResource() { $this->expectException(InvalidResourceException::class); $loader = new MoFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty.mo'; + $resource = __DIR__.'/../Fixtures/empty.mo'; $loader->load($resource, 'en', 'domain1'); } public function testLoadEmptyTranslation() { $loader = new MoFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty-translation.mo'; + $resource = __DIR__.'/../Fixtures/empty-translation.mo'; $catalogue = $loader->load($resource, 'en', 'message'); $this->assertEquals([], $catalogue->all('message')); diff --git a/src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php index 685ae4867af0a..e5ae2e89fa068 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/PhpFileLoaderTest.php @@ -22,7 +22,7 @@ class PhpFileLoaderTest extends TestCase public function testLoad() { $loader = new PhpFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.php'; + $resource = __DIR__.'/../Fixtures/resources.php'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1')); @@ -34,7 +34,7 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new PhpFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-existing.php'; + $resource = __DIR__.'/../Fixtures/non-existing.php'; $loader->load($resource, 'en', 'domain1'); } diff --git a/src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php index 626eda48f635e..4822de76cb0a8 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/PoFileLoaderTest.php @@ -21,7 +21,7 @@ class PoFileLoaderTest extends TestCase public function testLoad() { $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.po'; + $resource = __DIR__.'/../Fixtures/resources.po'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => 'bar', 'bar' => 'foo'], $catalogue->all('domain1')); @@ -32,7 +32,7 @@ public function testLoad() public function testLoadPlurals() { $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/plurals.po'; + $resource = __DIR__.'/../Fixtures/plurals.po'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals([ @@ -46,7 +46,7 @@ public function testLoadPlurals() public function testLoadDoesNothingIfEmpty() { $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty.po'; + $resource = __DIR__.'/../Fixtures/empty.po'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals([], $catalogue->all('domain1')); @@ -58,14 +58,14 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-existing.po'; + $resource = __DIR__.'/../Fixtures/non-existing.po'; $loader->load($resource, 'en', 'domain1'); } public function testLoadEmptyTranslation() { $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty-translation.po'; + $resource = __DIR__.'/../Fixtures/empty-translation.po'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => ''], $catalogue->all('domain1')); @@ -76,7 +76,7 @@ public function testLoadEmptyTranslation() public function testEscapedId() { $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/escaped-id.po'; + $resource = __DIR__.'/../Fixtures/escaped-id.po'; $catalogue = $loader->load($resource, 'en', 'domain1'); $messages = $catalogue->all('domain1'); @@ -87,7 +87,7 @@ public function testEscapedId() public function testEscapedIdPlurals() { $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/escaped-id-plurals.po'; + $resource = __DIR__.'/../Fixtures/escaped-id-plurals.po'; $catalogue = $loader->load($resource, 'en', 'domain1'); $messages = $catalogue->all('domain1'); @@ -98,7 +98,7 @@ public function testEscapedIdPlurals() public function testSkipFuzzyTranslations() { $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/fuzzy-translations.po'; + $resource = __DIR__.'/../Fixtures/fuzzy-translations.po'; $catalogue = $loader->load($resource, 'en', 'domain1'); $messages = $catalogue->all('domain1'); @@ -110,7 +110,7 @@ public function testSkipFuzzyTranslations() public function testMissingPlurals() { $loader = new PoFileLoader(); - $resource = __DIR__ . '/../Fixtures/missing-plurals.po'; + $resource = __DIR__.'/../Fixtures/missing-plurals.po'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals([ diff --git a/src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php index 593fd9e7860bf..908dca31e8f77 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/QtFileLoaderTest.php @@ -22,7 +22,7 @@ class QtFileLoaderTest extends TestCase public function testLoad() { $loader = new QtFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.ts'; + $resource = __DIR__.'/../Fixtures/resources.ts'; $catalogue = $loader->load($resource, 'en', 'resources'); $this->assertEquals([ @@ -38,7 +38,7 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new QtFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-existing.ts'; + $resource = __DIR__.'/../Fixtures/non-existing.ts'; $loader->load($resource, 'en', 'domain1'); } @@ -54,14 +54,14 @@ public function testLoadInvalidResource() { $this->expectException(InvalidResourceException::class); $loader = new QtFileLoader(); - $resource = __DIR__ . '/../Fixtures/invalid-xml-resources.xlf'; + $resource = __DIR__.'/../Fixtures/invalid-xml-resources.xlf'; $loader->load($resource, 'en', 'domain1'); } public function testLoadEmptyResource() { $loader = new QtFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty.xlf'; + $resource = __DIR__.'/../Fixtures/empty.xlf'; $this->expectException(InvalidResourceException::class); $this->expectExceptionMessage(sprintf('Unable to load "%s".', $resource)); diff --git a/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php index d2d5a371321f4..b64b6f9511519 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/XliffFileLoaderTest.php @@ -22,7 +22,7 @@ class XliffFileLoaderTest extends TestCase public function testLoadFile() { $loader = new XliffFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.xlf'; + $resource = __DIR__.'/../Fixtures/resources.xlf'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals('en', $catalogue->getLocale()); @@ -74,7 +74,7 @@ public function testLoadWithInternalErrorsEnabled() $this->assertSame([], libxml_get_errors()); $loader = new XliffFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.xlf'; + $resource = __DIR__.'/../Fixtures/resources.xlf'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals('en', $catalogue->getLocale()); @@ -88,7 +88,7 @@ public function testLoadWithInternalErrorsEnabled() public function testLoadWithExternalEntitiesDisabled() { $loader = new XliffFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.xlf'; + $resource = __DIR__.'/../Fixtures/resources.xlf'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals('en', $catalogue->getLocale()); @@ -98,7 +98,7 @@ public function testLoadWithExternalEntitiesDisabled() public function testLoadWithResname() { $loader = new XliffFileLoader(); - $catalogue = $loader->load(__DIR__ . '/../Fixtures/resname.xlf', 'en', 'domain1'); + $catalogue = $loader->load(__DIR__.'/../Fixtures/resname.xlf', 'en', 'domain1'); $this->assertEquals(['foo' => 'bar', 'bar' => 'baz', 'baz' => 'foo', 'qux' => 'qux source'], $catalogue->all('domain1')); } @@ -106,7 +106,7 @@ public function testLoadWithResname() public function testIncompleteResource() { $loader = new XliffFileLoader(); - $catalogue = $loader->load(__DIR__ . '/../Fixtures/resources.xlf', 'en', 'domain1'); + $catalogue = $loader->load(__DIR__.'/../Fixtures/resources.xlf', 'en', 'domain1'); $this->assertEquals(['foo' => 'bar', 'extra' => 'extra', 'key' => '', 'test' => 'with'], $catalogue->all('domain1')); } @@ -114,7 +114,7 @@ public function testIncompleteResource() public function testEncoding() { $loader = new XliffFileLoader(); - $catalogue = $loader->load(__DIR__ . '/../Fixtures/encoding.xlf', 'en', 'domain1'); + $catalogue = $loader->load(__DIR__.'/../Fixtures/encoding.xlf', 'en', 'domain1'); $this->assertEquals(mb_convert_encoding('föö', 'ISO-8859-1', 'UTF-8'), $catalogue->get('bar', 'domain1')); $this->assertEquals(mb_convert_encoding('bär', 'ISO-8859-1', 'UTF-8'), $catalogue->get('foo', 'domain1')); @@ -134,7 +134,7 @@ public function testEncoding() public function testTargetAttributesAreStoredCorrectly() { $loader = new XliffFileLoader(); - $catalogue = $loader->load(__DIR__ . '/../Fixtures/with-attributes.xlf', 'en', 'domain1'); + $catalogue = $loader->load(__DIR__.'/../Fixtures/with-attributes.xlf', 'en', 'domain1'); $metadata = $catalogue->getMetadata('foo', 'domain1'); $this->assertEquals('translated', $metadata['target-attributes']['state']); @@ -144,21 +144,21 @@ public function testLoadInvalidResource() { $this->expectException(InvalidResourceException::class); $loader = new XliffFileLoader(); - $loader->load(__DIR__ . '/../Fixtures/resources.php', 'en', 'domain1'); + $loader->load(__DIR__.'/../Fixtures/resources.php', 'en', 'domain1'); } public function testLoadResourceDoesNotValidate() { $this->expectException(InvalidResourceException::class); $loader = new XliffFileLoader(); - $loader->load(__DIR__ . '/../Fixtures/non-valid.xlf', 'en', 'domain1'); + $loader->load(__DIR__.'/../Fixtures/non-valid.xlf', 'en', 'domain1'); } public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new XliffFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-existing.xlf'; + $resource = __DIR__.'/../Fixtures/non-existing.xlf'; $loader->load($resource, 'en', 'domain1'); } @@ -175,13 +175,13 @@ public function testDocTypeIsNotAllowed() $this->expectException(InvalidResourceException::class); $this->expectExceptionMessage('Document types are not allowed.'); $loader = new XliffFileLoader(); - $loader->load(__DIR__ . '/../Fixtures/withdoctype.xlf', 'en', 'domain1'); + $loader->load(__DIR__.'/../Fixtures/withdoctype.xlf', 'en', 'domain1'); } public function testParseEmptyFile() { $loader = new XliffFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty.xlf'; + $resource = __DIR__.'/../Fixtures/empty.xlf'; $this->expectException(InvalidResourceException::class); $this->expectExceptionMessage(sprintf('Unable to load "%s":', $resource)); @@ -192,7 +192,7 @@ public function testParseEmptyFile() public function testLoadNotes() { $loader = new XliffFileLoader(); - $catalogue = $loader->load(__DIR__ . '/../Fixtures/withnote.xlf', 'en', 'domain1'); + $catalogue = $loader->load(__DIR__.'/../Fixtures/withnote.xlf', 'en', 'domain1'); $this->assertEquals( [ @@ -237,7 +237,7 @@ public function testLoadNotes() public function testLoadVersion2() { $loader = new XliffFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources-2.0.xlf'; + $resource = __DIR__.'/../Fixtures/resources-2.0.xlf'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals('en', $catalogue->getLocale()); @@ -255,7 +255,7 @@ public function testLoadVersion2() public function testLoadVersion2WithNoteMeta() { $loader = new XliffFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources-notes-meta.xlf'; + $resource = __DIR__.'/../Fixtures/resources-notes-meta.xlf'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals('en', $catalogue->getLocale()); @@ -295,7 +295,7 @@ public function testLoadVersion2WithNoteMeta() public function testLoadVersion2WithMultiSegmentUnit() { $loader = new XliffFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources-2.0-multi-segment-unit.xlf'; + $resource = __DIR__.'/../Fixtures/resources-2.0-multi-segment-unit.xlf'; $catalog = $loader->load($resource, 'en', 'domain1'); $this->assertSame('en', $catalog->getLocale()); @@ -324,7 +324,7 @@ public function testLoadVersion2WithMultiSegmentUnit() public function testLoadWithMultipleFileNodes() { $loader = new XliffFileLoader(); - $catalogue = $loader->load(__DIR__ . '/../Fixtures/resources-multi-files.xlf', 'en', 'domain1'); + $catalogue = $loader->load(__DIR__.'/../Fixtures/resources-multi-files.xlf', 'en', 'domain1'); $this->assertEquals( [ @@ -352,7 +352,7 @@ public function testLoadWithMultipleFileNodes() public function testLoadVersion2WithName() { $loader = new XliffFileLoader(); - $catalogue = $loader->load(__DIR__ . '/../Fixtures/resources-2.0-name.xlf', 'en', 'domain1'); + $catalogue = $loader->load(__DIR__.'/../Fixtures/resources-2.0-name.xlf', 'en', 'domain1'); $this->assertEquals(['foo' => 'bar', 'bar' => 'baz', 'baz' => 'foo', 'qux' => 'qux source'], $catalogue->all('domain1')); } diff --git a/src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php b/src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php index bdbb16411b376..647cd3acc2c85 100644 --- a/src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php +++ b/src/Symfony/Component/Translation/Tests/Loader/YamlFileLoaderTest.php @@ -22,7 +22,7 @@ class YamlFileLoaderTest extends TestCase public function testLoad() { $loader = new YamlFileLoader(); - $resource = __DIR__ . '/../Fixtures/resources.yml'; + $resource = __DIR__.'/../Fixtures/resources.yml'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1')); @@ -33,7 +33,7 @@ public function testLoad() public function testLoadNonStringMessages() { $loader = new YamlFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-string.yml'; + $resource = __DIR__.'/../Fixtures/non-string.yml'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertSame(['root.foo2' => '', 'root.bar' => 'bar'], $catalogue->all('domain1')); @@ -42,7 +42,7 @@ public function testLoadNonStringMessages() public function testLoadDoesNothingIfEmpty() { $loader = new YamlFileLoader(); - $resource = __DIR__ . '/../Fixtures/empty.yml'; + $resource = __DIR__.'/../Fixtures/empty.yml'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals([], $catalogue->all('domain1')); @@ -54,7 +54,7 @@ public function testLoadNonExistingResource() { $this->expectException(NotFoundResourceException::class); $loader = new YamlFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-existing.yml'; + $resource = __DIR__.'/../Fixtures/non-existing.yml'; $loader->load($resource, 'en', 'domain1'); } @@ -70,7 +70,7 @@ public function testLoadThrowsAnExceptionIfNotAnArray() { $this->expectException(InvalidResourceException::class); $loader = new YamlFileLoader(); - $resource = __DIR__ . '/../Fixtures/non-valid.yml'; + $resource = __DIR__.'/../Fixtures/non-valid.yml'; $loader->load($resource, 'en', 'domain1'); } } diff --git a/src/Symfony/Component/Translation/Tests/TranslatorTest.php b/src/Symfony/Component/Translation/Tests/TranslatorTest.php index b53b388457d2d..9ba54f6bf6763 100644 --- a/src/Symfony/Component/Translation/Tests/TranslatorTest.php +++ b/src/Symfony/Component/Translation/Tests/TranslatorTest.php @@ -225,8 +225,8 @@ public function testTransWithoutFallbackLocaleFile($format, $loader) $loaderClass = 'Symfony\\Component\\Translation\\Loader\\'.$loader; $translator = new Translator('en'); $translator->addLoader($format, new $loaderClass()); - $translator->addResource($format, __DIR__ . '/Fixtures/non-existing', 'en'); - $translator->addResource($format, __DIR__ . '/Fixtures/resources.' .$format, 'en'); + $translator->addResource($format, __DIR__.'/Fixtures/non-existing', 'en'); + $translator->addResource($format, __DIR__.'/Fixtures/resources.'.$format, 'en'); // force catalogue loading $translator->trans('foo'); @@ -240,8 +240,8 @@ public function testTransWithFallbackLocaleFile($format, $loader) $loaderClass = 'Symfony\\Component\\Translation\\Loader\\'.$loader; $translator = new Translator('en_GB'); $translator->addLoader($format, new $loaderClass()); - $translator->addResource($format, __DIR__ . '/Fixtures/non-existing', 'en_GB'); - $translator->addResource($format, __DIR__ . '/Fixtures/resources.' .$format, 'en', 'resources'); + $translator->addResource($format, __DIR__.'/Fixtures/non-existing', 'en_GB'); + $translator->addResource($format, __DIR__.'/Fixtures/resources.'.$format, 'en', 'resources'); $this->assertEquals('bar', $translator->trans('foo', [], 'resources')); } @@ -364,20 +364,20 @@ public function testFallbackCatalogueResources() { $translator = new Translator('en_GB'); $translator->addLoader('yml', new \Symfony\Component\Translation\Loader\YamlFileLoader()); - $translator->addResource('yml', __DIR__ . '/Fixtures/empty.yml', 'en_GB'); - $translator->addResource('yml', __DIR__ . '/Fixtures/resources.yml', 'en'); + $translator->addResource('yml', __DIR__.'/Fixtures/empty.yml', 'en_GB'); + $translator->addResource('yml', __DIR__.'/Fixtures/resources.yml', 'en'); // force catalogue loading $this->assertEquals('bar', $translator->trans('foo', [])); $resources = $translator->getCatalogue('en')->getResources(); $this->assertCount(1, $resources); - $this->assertContainsEquals(__DIR__ . \DIRECTORY_SEPARATOR . 'Fixtures' .\DIRECTORY_SEPARATOR.'resources.yml', $resources); + $this->assertContainsEquals(__DIR__.\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources); $resources = $translator->getCatalogue('en_GB')->getResources(); $this->assertCount(2, $resources); - $this->assertContainsEquals(__DIR__ . \DIRECTORY_SEPARATOR . 'Fixtures' .\DIRECTORY_SEPARATOR.'empty.yml', $resources); - $this->assertContainsEquals(__DIR__ . \DIRECTORY_SEPARATOR . 'Fixtures' .\DIRECTORY_SEPARATOR.'resources.yml', $resources); + $this->assertContainsEquals(__DIR__.\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR.'empty.yml', $resources); + $this->assertContainsEquals(__DIR__.\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR.'resources.yml', $resources); } /** diff --git a/src/Symfony/Component/Workflow/Tests/Dumper/PlantUmlDumperTest.php b/src/Symfony/Component/Workflow/Tests/Dumper/PlantUmlDumperTest.php index 3b0d0108e5ff8..a018a4eb8f54d 100644 --- a/src/Symfony/Component/Workflow/Tests/Dumper/PlantUmlDumperTest.php +++ b/src/Symfony/Component/Workflow/Tests/Dumper/PlantUmlDumperTest.php @@ -96,6 +96,6 @@ public function testDumpWorkflowWithSpacesInTheStateNamesAndDescription() private function getFixturePath($name, $transitionType): string { - return __DIR__ . '/../Fixtures/puml/' .$transitionType.'/'.$name.'.puml'; + return __DIR__.'/../Fixtures/puml/'.$transitionType.'/'.$name.'.puml'; } }