Skip to content

Commit a6f763c

Browse files
committed
Simplify usage of dirname()
1 parent 1c4ec6e commit a6f763c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Resources/TranslationFilesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ public function provideTranslationFiles()
2929
{
3030
return array_map(
3131
function ($filePath) { return (array) $filePath; },
32-
glob(\dirname(\dirname(__DIR__)).'/Resources/translations/*.xlf')
32+
glob(\dirname(__DIR__, 2).'/Resources/translations/*.xlf')
3333
);
3434
}
3535

3636
public function testNorwegianAlias()
3737
{
3838
$this->assertFileEquals(
39-
\dirname(\dirname(__DIR__)).'/Resources/translations/security.nb.xlf',
40-
\dirname(\dirname(__DIR__)).'/Resources/translations/security.no.xlf',
39+
\dirname(__DIR__, 2).'/Resources/translations/security.nb.xlf',
40+
\dirname(__DIR__, 2).'/Resources/translations/security.no.xlf',
4141
'The NO locale should be an alias for the NB variant of the Norwegian language.'
4242
);
4343
}

0 commit comments

Comments
 (0)