![]() | ||||
|
||||
![]() |
Coverage | |||||||||||||
Classes | Functions / Methods | Lines | |||||||||||
Total |
|
0.00% | 0 / 1 |
|
33.33% | 1 / 3 | CRAP |
|
66.67% | 4 / 6 | |||
SimpleClass |
|
0.00% | 0 / 1 |
|
33.33% | 1 / 3 |
|
66.67% | 4 / 6 | ||||
__construct($name) |
|
100.00% | 1 / 1 | 1 |
|
100.00% | 2 / 2 | ||||||
getName() |
|
0.00% | 0 / 1 | 2.15 |
|
66.67% | 2 / 3 | ||||||
getCounter() |
|
0.00% | 0 / 1 | 2 |
|
0.00% | 0 / 1 |
1 : <?php 2 : class SimpleClass { 3 : private $name = NULL; 4 : private $counter = 0; 5 : 6 : public function __construct($name) { 7 1 : $this->name = $name; 8 1 : } 9 : 10 : public function getName() { 11 1 : if (is_null($this->name)) { 12 0 : return 'no name'; 13 : } else { 14 1 : return $this->name; 15 : } 16 : } 17 : 18 : public function getCounter() { 19 0 : return $counter; 20 : } 21 : } 22 : ?> |
![]() |
Generated by PHP_CodeCoverage 1.0.3 using PHP 5.3.3-1ubuntu9.3 and PHPUnit 3.5.10 at Tue Feb 8 11:06:32 CET 2011. |