100% of 52OPs |
100% of 6Lines |
100% of 5Branches |
100% of 2Paths |
Method | OPs | OPs % | Lines | Line % | Branches | Branches % | Paths | Path % |
---|---|---|---|---|---|---|---|---|
mageekguy\atoum\report\fields\test\memory\phing::__toString() | 52 | 100% | 6 | 100% | 5 | 100% | 2 | 100% |
# | |
---|---|
1 |
<?php |
2 |
|
3 |
namespace mageekguy\atoum\report\fields\test\memory; |
4 |
|
5 |
use |
6 |
mageekguy\atoum, |
7 |
mageekguy\atoum\locale, |
8 |
mageekguy\atoum\cli\prompt, |
9 |
mageekguy\atoum\cli\colorizer, |
10 |
mageekguy\atoum\report |
11 |
; |
12 |
|
13 |
class phing extends report\fields\test\memory\cli |
14 |
{ |
15 |
public function __toString()100% |
16 |
{ |
17 |
return $this->prompt . |
18 |
sprintf( |
19 |
$this->locale->_('%1$s'), |
20 |
$this->memoryColorizer->colorize($this->value === null ? $this->locale->_('unknown') : sprintf($this->locale->_('%4.2f Mb'), $this->value / 1048576)) |
21 |
) |
22 |
; |
23 |
} |
24 |
} |