Code Duplication    Length = 12-12 lines in 2 locations

src/Configuration.php 2 locations

@@ 159-170 (lines=12) @@
156
        return $listener;
157
    }
158
159
    public function setRootDir(string $rootDir) : self
160
    {
161
        if (!is_dir($rootDir)) {
162
            throw new \InvalidArgumentException(
163
                sprintf('Root directory "%s" does not exist.', $rootDir)
164
            );
165
        }
166
167
        $this->rootDir = realpath($rootDir);
168
169
        return $this;
170
    }
171
172
    public function getRootDir() : string
173
    {
@@ 199-210 (lines=12) @@
196
        return $this->watchDirectories;
197
    }
198
199
    public function setTestsDirectory(string $testsDirectory) : self
200
    {
201
        if (!is_dir($testsDirectory)) {
202
            throw new \InvalidArgumentException(
203
                sprintf('Tests directory "%s" does not exist.', $testsDirectory)
204
            );
205
        }
206
207
        $this->testsDirectory = realpath($testsDirectory);
208
209
        return $this;
210
    }
211
212
    public function getTestsDirectory() : string
213
    {