98% of 44OPs |
100% of 8Lines |
67% of 6Branches |
100% of 4Paths |
Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
---|---|---|---|---|---|---|---|---|
mageekguy\atoum\report\fields\runner\tests\void::__construct() | 12 | 100% | 2 | 100% | 1 | 0% | 1 | 100% |
mageekguy\atoum\report\fields\runner\tests\void::getRunner() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
mageekguy\atoum\report\fields\runner\tests\void::handleEvent() | 26 | 96% | 5 | 100% | 4 | 75% | 2 | 100% |
# | |
---|---|
1 |
<?php |
2 |
|
3 |
namespace mageekguy\atoum\report\fields\runner\tests; |
4 |
|
5 |
use |
6 |
mageekguy\atoum\runner, |
7 |
mageekguy\atoum\report, |
8 |
mageekguy\atoum\observable |
9 |
; |
10 |
|
11 |
abstract class void extends report\field |
12 |
{ |
13 |
protected $runner = null; |
14 |
|
15 |
public function __construct()100% |
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 |
} |