100% of 55OPs |
100% of 8Lines |
80% of 5Branches |
100% of 5Paths |
| Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
|---|---|---|---|---|---|---|---|---|
| mageekguy\atoum\test\mock\generator::__construct() | 16 | 100% | 3 | 100% | 1 | 0% | 1 | 100% |
| mageekguy\atoum\test\mock\generator::__get() | 8 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\mock\generator::__call() | 16 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\mock\generator::setTest() | 9 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\mock\generator::getTest() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| # | |
|---|---|
| 1 |
<?php |
| 2 |
|
| 3 |
namespace mageekguy\atoum\test\mock; |
| 4 |
|
| 5 |
use |
| 6 |
mageekguy\atoum, |
| 7 |
mageekguy\atoum\mock |
| 8 |
; |
| 9 |
|
| 10 |
class generator extends mock\generator |
| 11 |
{
|
| 12 |
protected $test = null; |
| 13 |
|
| 14 |
public function __construct(atoum\test $test)100% |
| 15 |
{
|
| 16 |
parent::__construct(); |
| 17 |
|
| 18 |
$this->setTest($test); |
| 19 |
} |
| 20 |
|
| 21 |
public function __get($property)100% |
| 22 |
{
|
| 23 |
return $this->test->{$property};
|
| 24 |
} |
| 25 |
|
| 26 |
public function __call($method, array $arguments)100% |
| 27 |
{
|
| 28 |
return call_user_func_array(array($this->test, $method), $arguments); |
| 29 |
} |
| 30 |
|
| 31 |
public function setTest(atoum\test $test)100% |
| 32 |
{
|
| 33 |
$this->test = $test; |
| 34 |
|
| 35 |
return $this; |
| 36 |
} |
| 37 |
|
| 38 |
public function getTest()100% |
| 39 |
{
|
| 40 |
return $this->test; |
| 41 |
} |
| 42 |
} |