| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function startWatching() |
||
| 31 | { |
||
| 32 | $this->runTests(); |
||
| 33 | |||
| 34 | $watcher = new ResourceWatcher(new ResourceCacheMemory()); |
||
| 35 | |||
| 36 | $watcher->setFinder($this->finder); |
||
| 37 | |||
| 38 | while (true) { |
||
| 39 | $watcher->findChanges(); |
||
| 40 | |||
| 41 | if ($watcher->hasChanges()) { |
||
| 42 | $this->clearScreen(); |
||
| 43 | $this->runTests(); |
||
| 44 | } |
||
| 45 | |||
| 46 | usleep(250000); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 64 |