Code Duplication    Length = 12-12 lines in 2 locations

src/Configuration.php 2 locations

@@ 153-164 (lines=12) @@
150
        return $listener;
151
    }
152
153
    public function setRootDir(string $rootDir) : self
154
    {
155
        if (!is_dir($rootDir)) {
156
            throw new \InvalidArgumentException(
157
                sprintf('Root directory "%s" does not exist.', $rootDir)
158
            );
159
        }
160
161
        $this->rootDir = realpath($rootDir);
162
163
        return $this;
164
    }
165
166
    public function getRootDir() : string
167
    {
@@ 193-204 (lines=12) @@
190
        return $this->watchDirectories;
191
    }
192
193
    public function setTestsDirectory(string $testsDirectory) : self
194
    {
195
        if (!is_dir($testsDirectory)) {
196
            throw new \InvalidArgumentException(
197
                sprintf('Tests directory "%s" does not exist.', $testsDirectory)
198
            );
199
        }
200
201
        $this->testsDirectory = realpath($testsDirectory);
202
203
        return $this;
204
    }
205
206
    public function getTestsDirectory() : string
207
    {