|
||||
| Coverage | ||||||||||||
| Classes | Functions / Methods | Lines | ||||||||||
| Total |
|
100.00% | 1 / 1 |
|
100.00% | 3 / 3 |
|
100.00% | 6 / 6 | |||
| Api_Kwick_Config |
|
100.00% | 1 / 1 |
|
100.00% | 3 / 3 |
|
100.00% | 6 / 6 | |||
| public function __construct(array $config) |
|
100.00% | 1 / 1 |
|
100.00% | 2 / 2 | ||||||
| public function has($name) |
|
100.00% | 1 / 1 |
|
100.00% | 1 / 1 | ||||||
| public function get($name, $default = null) |
|
100.00% | 1 / 1 |
|
100.00% | 3 / 3 | ||||||
1 : <?php 2 : class Api_Kwick_Config { 3 : private $config; 4 : 5 : public function __construct(array $config) { 6 13 : $this->config = $config; 7 13 : } 8 : 9 : public function has($name) { 10 8 : return array_key_exists($name, $this->config); 11 : } 12 : 13 : public function get($name, $default = null) { 14 8 : if ($this->has($name)) { 15 5 : return $this->config[$name]; 16 : } 17 : 18 7 : return $default; 19 : } |
| Generated by PHPUnit 3.4.11 and Xdebug 2.0.5 using PHP 5.3.0 at Thu Mar 18 10:20:58 CET 2010. |