1 | <?php |
||
14 | class CodeCoverageGenerator extends Command |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $baseDir; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | private $exitCode = 0; |
||
25 | |||
26 | protected function configure() |
||
34 | |||
35 | /** |
||
36 | * Builds the code coverage clove report file |
||
37 | * |
||
38 | * @param InputInterface $input |
||
39 | * @param OutputInterface $output |
||
40 | * |
||
41 | * @return int|null|void |
||
42 | */ |
||
43 | protected function execute(InputInterface $input, OutputInterface $output) |
||
58 | |||
59 | /** |
||
60 | * Writes the clover report |
||
61 | * |
||
62 | * @param PHP_CodeCoverage $coverage |
||
63 | */ |
||
64 | private function writeReport(PHP_CodeCoverage $coverage) |
||
69 | |||
70 | /** |
||
71 | * Runs php spec unit tests |
||
72 | */ |
||
73 | private function runPhpSpec() |
||
81 | |||
82 | /** |
||
83 | * Runs php spec unit tests |
||
84 | */ |
||
85 | private function runBehat() |
||
95 | |||
96 | /** |
||
97 | * @return PHP_CodeCoverage_Filter |
||
98 | */ |
||
99 | private function getFilter() |
||
109 | |||
110 | /** |
||
111 | * @param string $path |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | private function getPath($path) |
||
119 | } |
||
120 |