97% of 32OPs |
100% of 6Lines |
80% of 5Branches |
100% of 3Paths |
Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
---|---|---|---|---|---|---|---|---|
mageekguy\atoum\report\fields\runner\outputs::getRunner() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
mageekguy\atoum\report\fields\runner\outputs::handleEvent() | 26 | 96% | 5 | 100% | 4 | 75% | 2 | 100% |
# | |
---|---|
1 |
<?php |
2 |
|
3 |
namespace mageekguy\atoum\report\fields\runner; |
4 |
|
5 |
use |
6 |
mageekguy\atoum\runner, |
7 |
mageekguy\atoum\observable, |
8 |
mageekguy\atoum\report\field |
9 |
; |
10 |
|
11 |
abstract class outputs extends field |
12 |
{ |
13 |
protected $runner = null; |
14 |
|
15 |
public function __construct() |
16 |
{ |
17 |
parent::__construct(array(runner::runStop)); |
18 |
} |
19 |
|
20 |
public function getRunner()100% |
21 |
{ |
22 |
return $this->runner; |
23 |
} |
24 |
|
25 |
public function handleEvent($event, observable $observable)100% |
26 |
{ |
27 |
if (parent::handleEvent($event, $observable) === false) |
28 |
{ |
29 |
return false; |
30 |
} |
31 |
else |
32 |
{ |
33 |
$this->runner = $observable; |
34 |
|
35 |
return true; |
36 |
} |
37 |
} |
38 |
} |