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

99% of 67

OPs

100% of 10

Lines

86% of 7

Branches

100% of 5

Paths
Method OPs OPs % Lines Line % Branches Branches % Paths Path %
mageekguy\atoum\report\fields\runner\atoum::getAuthor() 6 100% 1 100% 1 100% 1 100%
mageekguy\atoum\report\fields\runner\atoum::getVersion() 6 100% 1 100% 1 100% 1 100%
mageekguy\atoum\report\fields\runner\atoum::getPath() 6 100% 1 100% 1 100% 1 100%
mageekguy\atoum\report\fields\runner\atoum::handleEvent() 49 98% 7 100% 4 75% 2 100%
#
1
<?php
2

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

                    
5
require_once __DIR__ . '/../../../../constants.php';
6

                    
7
use
8
	mageekguy\atoum\runner,
9
	mageekguy\atoum\report
10
;
11

                    
12
abstract class atoum extends report\field
13
{
14
	protected $author = null;
15
	protected $path = null;
16
	protected $version = null;
17

                    
18
	public function __construct()
19
	{
20
		parent::__construct(array(runner::runStart));
21
	}
22

                    
23
	public function getAuthor()100%
24
	{
25
		return $this->author;
26
	}
27

                    
28
	public function getVersion()100%
29
	{
30
		return $this->version;
31
	}
32

                    
33
	public function getPath()100%
34
	{
35
		return $this->path;
36
	}
37

                    
38
	public function handleEvent($event, \mageekguy\atoum\observable $observable)100%
39
	{
40
		if (parent::handleEvent($event, $observable) === false)
41
		{
42
			return false;
43
		}
44
		else
45
		{
46
			$this->author = \mageekguy\atoum\author;
47
			$this->path = $observable->getScore()->getAtoumPath();
48
			$this->version = $observable->getScore()->getAtoumVersion();
49

                    
50
			return true;
51
		}
52
	}
53
}