Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ItRunsApplications | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| bootApplication | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | |||||
| cleanApplication | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | |||||
| ItRunsApplications | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\IntegrationTests\Concerns; |
| 3 | |
| 4 | trait ItRunsApplications |
| 5 | { |
| 6 | abstract public function bootApplication(): void; |
| 7 | abstract public function cleanApplication(): void; |
| 8 | |
| 9 | public function ItRunsApplications(callable $test): void |
| 10 | { |
| 11 | $this->bootApplication(); |
| 12 | try { |
| 13 | $test($this); |
| 14 | } finally { |
| 15 | $this->cleanApplication(); |
| 16 | } |
| 17 | } |
| 18 | } |