97% of 150OPs |
100% of 29Lines |
81% of 21Branches |
100% of 13Paths |
| Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
|---|---|---|---|---|---|---|---|---|
| mageekguy\atoum\runner\score::reset() | 26 | 100% | 5 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\runner\score::setAtoumPath() | 24 | 96% | 5 | 100% | 4 | 75% | 2 | 100% |
| mageekguy\atoum\runner\score::getAtoumPath() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\runner\score::setAtoumVersion() | 24 | 96% | 5 | 100% | 4 | 75% | 2 | 100% |
| mageekguy\atoum\runner\score::getAtoumVersion() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\runner\score::setPhpPath() | 24 | 96% | 5 | 100% | 4 | 75% | 2 | 100% |
| mageekguy\atoum\runner\score::getPhpPath() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| mageekguy\atoum\runner\score::setPhpVersion() | 28 | 96% | 5 | 100% | 4 | 75% | 2 | 100% |
| mageekguy\atoum\runner\score::getPhpVersion() | 6 | 100% | 1 | 100% | 1 | 100% | 1 | 100% |
| # | |
|---|---|
| 1 |
<?php |
| 2 |
|
| 3 |
namespace mageekguy\atoum\runner; |
| 4 |
|
| 5 |
use |
| 6 |
mageekguy\atoum, |
| 7 |
mageekguy\atoum\exceptions |
| 8 |
; |
| 9 |
|
| 10 |
class score extends atoum\score |
| 11 |
{
|
| 12 |
protected $phpPath = null; |
| 13 |
protected $phpVersion = null; |
| 14 |
protected $atoumPath = null; |
| 15 |
protected $atoumVersion = null; |
| 16 |
|
| 17 |
public function reset()100% |
| 18 |
{
|
| 19 |
$this->phpPath = null; |
| 20 |
$this->phpVersion = null; |
| 21 |
$this->atoumPath = null; |
| 22 |
$this->atoumVersion = null; |
| 23 |
|
| 24 |
return parent::reset(); |
| 25 |
} |
| 26 |
|
| 27 |
public function setAtoumPath($path)100% |
| 28 |
{
|
| 29 |
if ($this->atoumPath !== null) |
| 30 |
{
|
| 31 |
throw new exceptions\runtime('Path of atoum is already set');
|
| 32 |
} |
| 33 |
|
| 34 |
$this->atoumPath = (string) $path; |
| 35 |
|
| 36 |
return $this; |
| 37 |
} |
| 38 |
|
| 39 |
public function getAtoumPath()100% |
| 40 |
{
|
| 41 |
return $this->atoumPath; |
| 42 |
} |
| 43 |
|
| 44 |
public function setAtoumVersion($version)100% |
| 45 |
{
|
| 46 |
if ($this->atoumVersion !== null) |
| 47 |
{
|
| 48 |
throw new exceptions\runtime('Version of atoum is already set');
|
| 49 |
} |
| 50 |
|
| 51 |
$this->atoumVersion = (string) $version; |
| 52 |
|
| 53 |
return $this; |
| 54 |
} |
| 55 |
|
| 56 |
public function getAtoumVersion()100% |
| 57 |
{
|
| 58 |
return $this->atoumVersion; |
| 59 |
} |
| 60 |
|
| 61 |
public function setPhpPath($path)100% |
| 62 |
{
|
| 63 |
if ($this->phpPath !== null) |
| 64 |
{
|
| 65 |
throw new exceptions\runtime('PHP path is already set');
|
| 66 |
} |
| 67 |
|
| 68 |
$this->phpPath = (string) $path; |
| 69 |
|
| 70 |
return $this; |
| 71 |
} |
| 72 |
|
| 73 |
public function getPhpPath()100% |
| 74 |
{
|
| 75 |
return $this->phpPath; |
| 76 |
} |
| 77 |
|
| 78 |
public function setPhpVersion($version)100% |
| 79 |
{
|
| 80 |
if ($this->phpVersion !== null) |
| 81 |
{
|
| 82 |
throw new exceptions\runtime('PHP version is already set');
|
| 83 |
} |
| 84 |
|
| 85 |
$this->phpVersion = trim($version); |
| 86 |
|
| 87 |
return $this; |
| 88 |
} |
| 89 |
|
| 90 |
public function getPhpVersion()100% |
| 91 |
{
|
| 92 |
return $this->phpVersion; |
| 93 |
} |
| 94 |
} |