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

100% of 67

OPs

100% of 7

Lines

100% of 5

Branches

100% of 2

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

                    
3
namespace mageekguy\atoum\report\fields\runner\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\fields\runner\duration
11
;
12

                    
13
class phing extends duration\cli
14
{
15
	public function __toString()100%
16
	{
17
		return
18
			$this->prompt .
19
			sprintf(
20
				$this->locale->_('%1$s: %2$s.'),
21
				$this->titleColorizer->colorize($this->locale->_('Running duration')),
22
				$this->durationColorizer->colorize($this->value === null ? $this->locale->_('unknown') : sprintf($this->locale->__('%4.2f second', '%4.2f seconds', $this->value), $this->value)
23
			)
24
		);
25
	}
26
}