mageekguy\atoum\report\fields\test\run: lines coverage

97% of 36

OPs

100% of 6

Lines

80% of 5

Branches

100% of 3

Paths
Method OPs OPs % Lines Line % Branches Branches % Paths Path %
mageekguy\atoum\report\fields\test\run::getTestClass() 6 100% 1 100% 1 100% 1 100%
mageekguy\atoum\report\fields\test\run::handleEvent() 30 97% 5 100% 4 75% 2 100%
#
1
<?php
2

                    
3
namespace mageekguy\atoum\report\fields\test;
4

                    
5
use
6
	mageekguy\atoum,
7
	mageekguy\atoum\test,
8
	mageekguy\atoum\report
9
;
10

                    
11
abstract class run extends report\field
12
{
13
	protected $testClass = null;
14

                    
15
	public function __construct()
16
	{
17
		parent::__construct(array(test::runStart));
18
	}
19

                    
20
	public function getTestClass()100%
21
	{
22
		return $this->testClass;
23
	}
24

                    
25
	public function handleEvent($event, atoum\observable $observable)100%
26
	{
27
		if (parent::handleEvent($event, $observable) === false)
28
		{
29
			return false;
30
		}
31
		else
32
		{
33
			$this->testClass = $observable->getClass();
34

                    
35
			return true;
36
		}
37
	}
38
}