Code Duplication    Length = 13-14 lines in 2 locations

src/Graviton/I18nBundle/Tests/Controller/ExternalTranslationDomainControllerTest.php 1 location

@@ 63-75 (lines=13) @@
60
     *
61
     * @return void
62
     */
63
    private function cleanFiles()
64
    {
65
        $fs = new Filesystem();
66
        $finder = new Finder();
67
        $finder
68
            ->files()
69
            ->in(__DIR__.'/../../Resources/translations')
70
            ->name('external.*.*');
71
72
        foreach ($finder as $file) {
73
            $fs->remove($file->getRealPath());
74
        }
75
    }
76
77
    /**
78
     * see if a non existent domain gets translated correctly.

src/Graviton/I18nBundle/Tests/Service/I18nCacheUtilsTest.php 1 location

@@ 127-140 (lines=14) @@
124
     *
125
     * @return void
126
     */
127
    public static function tearDownAfterClass()
128
    {
129
        // remove resources
130
        $fs = new Filesystem();
131
        $finder = new Finder();
132
        $finder
133
            ->files()
134
            ->ignoreDotFiles(true)
135
            ->in(__DIR__ . '/resources/translations');
136
137
        foreach ($finder as $file) {
138
            $fs->remove($file->getRealPath());
139
        }
140
    }
141
}
142