| Conditions | 3 |
| Paths | 3 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function startWatching() |
||
| 41 | { |
||
| 42 | $this->clearScreen(); |
||
| 43 | $this->runTests(); |
||
| 44 | |||
| 45 | $cache = new ResourceCacheFile( |
||
| 46 | $this->pathToCacheFile |
||
| 47 | ); |
||
| 48 | |||
| 49 | $watcher = new ResourceWatcher($cache); |
||
| 50 | |||
| 51 | $watcher->setFinder($this->finder); |
||
| 52 | |||
| 53 | while (true) { |
||
| 54 | $watcher->findChanges(); |
||
| 55 | |||
| 56 | if ($watcher->hasChanges()) { |
||
| 57 | $this->clearScreen(); |
||
| 58 | $this->runTests(); |
||
| 59 | } |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 77 |