@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | public function testGetPaths() |
| 16 | 16 | { |
| 17 | - $path = __DIR__ . '/_files'; |
|
| 17 | + $path = __DIR__.'/_files'; |
|
| 18 | 18 | $prefix = 'Foo'; |
| 19 | 19 | |
| 20 | 20 | $locator = new SymfonyFileLocator([$path => $prefix]); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | public function testGetPrefixes() |
| 28 | 28 | { |
| 29 | - $path = __DIR__ . '/_files'; |
|
| 29 | + $path = __DIR__.'/_files'; |
|
| 30 | 30 | $prefix = 'Foo'; |
| 31 | 31 | |
| 32 | 32 | $locator = new SymfonyFileLocator([$path => $prefix]); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | public function testFileExists() |
| 45 | 45 | { |
| 46 | - $path = __DIR__ . '/_files'; |
|
| 46 | + $path = __DIR__.'/_files'; |
|
| 47 | 47 | $prefix = 'Foo'; |
| 48 | 48 | |
| 49 | 49 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml'); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | public function testGetAllClassNames() |
| 58 | 58 | { |
| 59 | - $path = __DIR__ . '/_files'; |
|
| 59 | + $path = __DIR__.'/_files'; |
|
| 60 | 60 | $prefix = 'Foo'; |
| 61 | 61 | |
| 62 | 62 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml'); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | $this->expectException(InvalidArgumentException::class); |
| 81 | 81 | $this->expectExceptionMessage('Namespace separator should not be empty'); |
| 82 | - $path = __DIR__ . '/_files'; |
|
| 82 | + $path = __DIR__.'/_files'; |
|
| 83 | 83 | $prefix = 'Foo'; |
| 84 | 84 | |
| 85 | 85 | new SymfonyFileLocator([$path => $prefix], '.yml', null); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | */ |
| 104 | 104 | public function testGetClassNamesWithCustomNsSeparator($separator, $dir) |
| 105 | 105 | { |
| 106 | - $path = __DIR__ . $dir; |
|
| 106 | + $path = __DIR__.$dir; |
|
| 107 | 107 | $prefix = 'Foo'; |
| 108 | 108 | |
| 109 | 109 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml', $separator); |
@@ -148,29 +148,29 @@ discard block |
||
| 148 | 148 | */ |
| 149 | 149 | public function testFindMappingFileWithCustomNsSeparator($separator, $dir, $files) |
| 150 | 150 | { |
| 151 | - $path = __DIR__ . $dir; |
|
| 151 | + $path = __DIR__.$dir; |
|
| 152 | 152 | $prefix = 'Foo'; |
| 153 | 153 | |
| 154 | 154 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml', $separator); |
| 155 | 155 | |
| 156 | 156 | foreach ($files as $filePath => $className) { |
| 157 | - self::assertSame(realpath($path . '/' . $filePath), realpath($locator->findMappingFile($className))); |
|
| 157 | + self::assertSame(realpath($path.'/'.$filePath), realpath($locator->findMappingFile($className))); |
|
| 158 | 158 | } |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | public function testFindMappingFile() |
| 162 | 162 | { |
| 163 | - $path = __DIR__ . '/_files'; |
|
| 163 | + $path = __DIR__.'/_files'; |
|
| 164 | 164 | $prefix = 'Foo'; |
| 165 | 165 | |
| 166 | 166 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml'); |
| 167 | 167 | |
| 168 | - self::assertSame(__DIR__ . '/_files/stdClass.yml', $locator->findMappingFile('Foo\\stdClass')); |
|
| 168 | + self::assertSame(__DIR__.'/_files/stdClass.yml', $locator->findMappingFile('Foo\\stdClass')); |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | public function testFindMappingFileNotFound() |
| 172 | 172 | { |
| 173 | - $path = __DIR__ . '/_files'; |
|
| 173 | + $path = __DIR__.'/_files'; |
|
| 174 | 174 | $prefix = 'Foo'; |
| 175 | 175 | |
| 176 | 176 | $locator = new SymfonyFileLocator([$path => $prefix], '.yml'); |
@@ -184,13 +184,13 @@ discard block |
||
| 184 | 184 | { |
| 185 | 185 | // Low -> High |
| 186 | 186 | $prefixes = []; |
| 187 | - $prefixes[__DIR__ . '/_match_ns'] = 'Foo'; |
|
| 188 | - $prefixes[__DIR__ . '/_match_ns/Bar'] = 'Foo\\Bar'; |
|
| 187 | + $prefixes[__DIR__.'/_match_ns'] = 'Foo'; |
|
| 188 | + $prefixes[__DIR__.'/_match_ns/Bar'] = 'Foo\\Bar'; |
|
| 189 | 189 | |
| 190 | 190 | $locator = new SymfonyFileLocator($prefixes, '.yml'); |
| 191 | 191 | |
| 192 | 192 | self::assertSame( |
| 193 | - __DIR__ . '/_match_ns/Bar/barEntity.yml', |
|
| 193 | + __DIR__.'/_match_ns/Bar/barEntity.yml', |
|
| 194 | 194 | $locator->findMappingFile("Foo\\Bar\\barEntity") |
| 195 | 195 | ); |
| 196 | 196 | } |
@@ -198,13 +198,13 @@ discard block |
||
| 198 | 198 | public function testFindMappingFileMostSpecificNamespaceFirst() |
| 199 | 199 | { |
| 200 | 200 | $prefixes = []; |
| 201 | - $prefixes[__DIR__ . '/_match_ns/Bar'] = 'Foo\\Bar'; |
|
| 202 | - $prefixes[__DIR__ . '/_match_ns'] = 'Foo'; |
|
| 201 | + $prefixes[__DIR__.'/_match_ns/Bar'] = 'Foo\\Bar'; |
|
| 202 | + $prefixes[__DIR__.'/_match_ns'] = 'Foo'; |
|
| 203 | 203 | |
| 204 | 204 | $locator = new SymfonyFileLocator($prefixes, '.yml'); |
| 205 | 205 | |
| 206 | 206 | self::assertSame( |
| 207 | - __DIR__ . '/_match_ns/Bar/barEntity.yml', |
|
| 207 | + __DIR__.'/_match_ns/Bar/barEntity.yml', |
|
| 208 | 208 | $locator->findMappingFile("Foo\\Bar\\barEntity") |
| 209 | 209 | ); |
| 210 | 210 | } |