mageekguy\atoum\report\fields\test\duration\phing: lines coverage

100% of 54

OPs

100% of 6

Lines

100% of 5

Branches

100% of 2

Paths
Method OPs OPs % Lines Line % Branches Branches % Paths Path %
mageekguy\atoum\report\fields\test\duration\phing::__toString() 54 100% 6 100% 5 100% 2 100%
#
1
<?php
2

                    
3
namespace mageekguy\atoum\report\fields\test\duration;
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\duration\cli
14
{
15
	public function __toString()100%
16
	{
17
		return $this->prompt .
18
			sprintf(
19
				$this->locale->_('%1$s'),
20
				$this->durationColorizer->colorize($this->value === null ? $this->locale->_('unknown') : sprintf($this->locale->__('%4.2f s', '%4.2f s', $this->value), $this->value))
21
			)
22
		;
23
	}
24
}