42% of 194OPs |
85% of 20Lines |
73% of 11Branches |
73% of 11Paths |
| Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
|---|---|---|---|---|---|---|---|---|
| mageekguy\atoum\test\score::reset() | 18 | 100% | 4 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\score::addFail() | 37 | 0% | 1 | 0% | 1 | 0% | 1 | 0% |
| mageekguy\atoum\test\score::addException() | 35 | 0% | 1 | 0% | 1 | 0% | 1 | 0% |
| mageekguy\atoum\test\score::addError() | 41 | 0% | 1 | 0% | 1 | 0% | 1 | 0% |
| mageekguy\atoum\test\score::getCase() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\score::setCase() | 10 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\score::unsetCase() | 9 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\score::setDataSet() | 13 | 100% | 3 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\score::unsetDataSet() | 13 | 100% | 3 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\score::getDataSetKey() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\score::getDataSetProvider() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| # | |
|---|---|
| 1 |
<?php |
| 2 |
|
| 3 |
namespace mageekguy\atoum\test; |
| 4 |
|
| 5 |
use |
| 6 |
mageekguy\atoum |
| 7 |
; |
| 8 |
|
| 9 |
class score extends atoum\score |
| 10 |
{
|
| 11 |
private $case = null; |
| 12 |
private $dataSetKey = null; |
| 13 |
private $dataSetProvider = null; |
| 14 |
|
| 15 |
public function reset()100% |
| 16 |
{
|
| 17 |
return parent::reset() |
| 18 |
->unsetCase() |
| 19 |
->unsetDataSet() |
| 20 |
; |
| 21 |
} |
| 22 |
|
| 23 |
public function addFail($file, $class, $method, $line, $asserter, $reason, $case = null, $dataSetKey = null, $dataSetProvider = null)0% |
| 24 |
{
|
| 25 |
return parent::addFail($file, $class, $method, $line, $asserter, $reason, $case ?: $this->case, $dataSetKey ?: $this->dataSetKey, $dataSetProvider ?: $this->dataSetProvider); |
| 26 |
} |
| 27 |
|
| 28 |
public function addException($file, $class, $method, $line, \exception $exception, $case = null, $dataSetKey = null, $dataSetProvider = null)0% |
| 29 |
{
|
| 30 |
return parent::addException($file, $class, $method, $line, $exception, $case ?: $this->case, $dataSetKey ?: $this->dataSetKey, $dataSetProvider ?: $this->dataSetProvider); |
| 31 |
} |
| 32 |
|
| 33 |
public function addError($file, $class, $method, $line, $type, $message, $errorFile = null, $errorLine = null, $case = null, $dataSetKey = null, $dataSetProvider = null)0% |
| 34 |
{
|
| 35 |
return parent::addError($file, $class, $method, $line, $type, $message, $errorFile, $errorLine, $case ?: $this->case, $dataSetKey ?: $this->dataSetKey, $dataSetProvider ?: $this->dataSetProvider); |
| 36 |
} |
| 37 |
|
| 38 |
public function getCase()100% |
| 39 |
{
|
| 40 |
return $this->case; |
| 41 |
} |
| 42 |
|
| 43 |
public function setCase($case)100% |
| 44 |
{
|
| 45 |
$this->case = (string) $case; |
| 46 |
|
| 47 |
return $this; |
| 48 |
} |
| 49 |
|
| 50 |
public function unsetCase()100% |
| 51 |
{
|
| 52 |
$this->case = null; |
| 53 |
|
| 54 |
return $this; |
| 55 |
} |
| 56 |
|
| 57 |
public function setDataSet($key, $dataProvider)100% |
| 58 |
{
|
| 59 |
$this->dataSetKey = $key; |
| 60 |
$this->dataSetProvider = $dataProvider; |
| 61 |
|
| 62 |
return $this; |
| 63 |
} |
| 64 |
|
| 65 |
public function unsetDataSet()100% |
| 66 |
{
|
| 67 |
$this->dataSetKey = null; |
| 68 |
$this->dataSetProvider = null; |
| 69 |
|
| 70 |
return $this; |
| 71 |
} |
| 72 |
|
| 73 |
public function getDataSetKey()100% |
| 74 |
{
|
| 75 |
return $this->dataSetKey; |
| 76 |
} |
| 77 |
|
| 78 |
public function getDataSetProvider()100% |
| 79 |
{
|
| 80 |
return $this->dataSetProvider; |
| 81 |
} |
| 82 |
} |