100% of 81OPs |
100% of 15Lines |
88% of 8Branches |
100% of 6Paths |
| Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
|---|---|---|---|---|---|---|---|---|
| mageekguy\atoum\test\engines\inline::isAsynchronous() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\engines\inline::__construct() | 9 | 100% | 2 | 100% | 1 | 0% | 1 | 100% |
| mageekguy\atoum\test\engines\inline::setScore() | 16 | 100% | 2 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\engines\inline::getScore() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\test\engines\inline::run() | 44 | 100% | 9 | 100% | 4 | 100% | 2 | 100% |
| # | |
|---|---|
| 1 |
<?php |
| 2 |
|
| 3 |
namespace mageekguy\atoum\test\engines; |
| 4 |
|
| 5 |
use |
| 6 |
mageekguy\atoum, |
| 7 |
mageekguy\atoum\test |
| 8 |
; |
| 9 |
|
| 10 |
class inline extends test\engine |
| 11 |
{
|
| 12 |
protected $score = null; |
| 13 |
|
| 14 |
public function isAsynchronous()100% |
| 15 |
{
|
| 16 |
return false; |
| 17 |
} |
| 18 |
|
| 19 |
public function __construct(atoum\test\score $score = null)100% |
| 20 |
{
|
| 21 |
$this->setScore(); |
| 22 |
} |
| 23 |
|
| 24 |
public function setScore(atoum\test\score $score = null)100% |
| 25 |
{
|
| 26 |
$this->score = $score ?: new atoum\test\score(); |
| 27 |
|
| 28 |
return $this; |
| 29 |
} |
| 30 |
|
| 31 |
public function getScore()100% |
| 32 |
{
|
| 33 |
return $this->score; |
| 34 |
} |
| 35 |
|
| 36 |
public function run(atoum\test $test)100% |
| 37 |
{
|
| 38 |
$currentTestMethod = $test->getCurrentMethod(); |
| 39 |
|
| 40 |
if ($currentTestMethod !== null) |
| 41 |
{
|
| 42 |
$testScore = $test->getScore(); |
| 43 |
|
| 44 |
$test |
| 45 |
->setScore($this->score->reset()) |
| 46 |
->runTestMethod($currentTestMethod) |
| 47 |
->setScore($testScore) |
| 48 |
; |
| 49 |
} |
| 50 |
|
| 51 |
return $this; |
| 52 |
} |
| 53 |
} |