Code Duplication    Length = 21-21 lines in 4 locations

Tests/Units/Cache/CacheTestCase.php 1 location

@@ 48-68 (lines=21) @@
45
     * @param \Closure  $phpExtensionFactory
46
     * @param Analyzer  $analyzer
47
     */
48
    public function __construct(
49
        Adapter $adapter = null,
50
        Extractor $annotationExtractor = null,
51
        Generator $asserterGenerator = null,
52
        Manager $assertionManager = null,
53
        \Closure $reflectionClassFactory = null,
54
        \Closure $phpExtensionFactory = null,
55
        Analyzer $analyzer = null
56
    ) {
57
        parent::__construct(
58
            $adapter,
59
            $annotationExtractor,
60
            $asserterGenerator,
61
            $assertionManager,
62
            $reflectionClassFactory,
63
            $phpExtensionFactory,
64
            $analyzer
65
        );
66
67
        $this->cacheDirectory = __DIR__.'/Cache';
68
    }
69
70
    /**
71
     * @return CacheInterface

Tests/Units/ClassMetadataFactoryTests.php 1 location

@@ 53-73 (lines=21) @@
50
     * @param \Closure  $phpExtensionFactory
51
     * @param Analyzer  $analyzer
52
     */
53
    public function __construct(
54
        Adapter $adapter = null,
55
        Extractor $annotationExtractor = null,
56
        Generator $asserterGenerator = null,
57
        Manager $assertionManager = null,
58
        \Closure $reflectionClassFactory = null,
59
        \Closure $phpExtensionFactory = null,
60
        Analyzer $analyzer = null
61
    ) {
62
        parent::__construct(
63
            $adapter,
64
            $annotationExtractor,
65
            $asserterGenerator,
66
            $assertionManager,
67
            $reflectionClassFactory,
68
            $phpExtensionFactory,
69
            $analyzer
70
        );
71
72
        $this->cacheDirectory = __DIR__.'/Factory/Cache';
73
    }
74
75
    /**
76
     * Create the cache directory.

Tests/Units/Driver/AbstractAnnotationDriverTests.php 1 location

@@ 47-67 (lines=21) @@
44
     * @param \Closure  $phpExtensionFactory
45
     * @param Analyzer  $analyzer
46
     */
47
    public function __construct(
48
        Adapter $adapter = null,
49
        Extractor $annotationExtractor = null,
50
        Generator $asserterGenerator = null,
51
        Manager $assertionManager = null,
52
        \Closure $reflectionClassFactory = null,
53
        \Closure $phpExtensionFactory = null,
54
        Analyzer $analyzer = null
55
    ) {
56
        parent::__construct(
57
            $adapter,
58
            $annotationExtractor,
59
            $asserterGenerator,
60
            $assertionManager,
61
            $reflectionClassFactory,
62
            $phpExtensionFactory,
63
            $analyzer
64
        );
65
66
        $this->cacheDirectory = __DIR__.'/../Driver/Cache';
67
    }
68
69
    /**
70
     * Create the cache directory.

Tests/Units/Locator/FileLocatorTestCase.php 1 location

@@ 45-65 (lines=21) @@
42
     * @param \Closure  $phpExtensionFactory
43
     * @param Analyzer  $analyzer
44
     */
45
    public function __construct(
46
        Adapter $adapter = null,
47
        Extractor $annotationExtractor = null,
48
        Generator $asserterGenerator = null,
49
        Manager $assertionManager = null,
50
        \Closure $reflectionClassFactory = null,
51
        \Closure $phpExtensionFactory = null,
52
        Analyzer $analyzer = null
53
    ) {
54
        parent::__construct(
55
            $adapter,
56
            $annotationExtractor,
57
            $asserterGenerator,
58
            $assertionManager,
59
            $reflectionClassFactory,
60
            $phpExtensionFactory,
61
            $analyzer
62
        );
63
64
        $this->mappingDirectory = __DIR__.'/../../Fixtures/mapping';
65
    }
66
67
    /**
68
     * @return FileLocatorInterface