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