1 | <?php |
||
12 | class Watcher |
||
13 | { |
||
14 | /** @var \Symfony\Component\Finder\Finder */ |
||
15 | protected $finder; |
||
16 | |||
17 | /** @var $string */ |
||
18 | protected $phpunitArguments; |
||
19 | |||
20 | /** @var \React\EventLoop\LibEventLoop */ |
||
21 | protected $loop; |
||
22 | |||
23 | /** @var \Spatie\PhpUnitWatcher\Terminal */ |
||
24 | protected $terminal; |
||
25 | |||
26 | public function __construct(Finder $finder) |
||
27 | { |
||
28 | $this->finder = $finder; |
||
29 | |||
30 | $this->loop = Factory::create(); |
||
31 | |||
32 | $this->terminal = new Terminal(new Stdio($this->loop)); |
||
33 | } |
||
34 | |||
35 | public function usePhpunitArguments(string $arguments) |
||
41 | |||
42 | public function startWatching() |
||
64 | } |
||
65 |