Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
41 | 2 | public function __invoke(PathInterface $project): void |
|
42 | { |
||
43 | 2 | $tests = new Path($project.'/tests'); |
|
44 | |||
45 | ($this->watch)($tests)(function() { |
||
46 | 2 | $monitor = $this->ipc->get($this->monitor); |
|
47 | 2 | $monitor->send( |
|
48 | 2 | $this->protocol->encode( |
|
49 | 2 | new Activity(Type::testsModified(), []) |
|
50 | ) |
||
51 | ); |
||
52 | 2 | $monitor->close(); |
|
53 | 2 | }); |
|
56 |