mageekguy\atoum\mock\stream\invoker: lines coverage

38% of 47

OPs

38% of 8

Lines

11% of 9

Branches

33% of 6

Paths
Method OPs OPs % Lines Line % Branches Branches % Paths Path %
mageekguy\atoum\mock\stream\invoker::__construct() 12 100% 2 100% 1 0% 1 100%
mageekguy\atoum\mock\stream\invoker::getMethodName() 6 100% 1 100% 1 100% 1 100%
mageekguy\atoum\mock\stream\invoker::offsetSet() 29 0% 5 0% 7 0% 4 0%
#
1
<?php
2

                    
3
namespace mageekguy\atoum\mock\stream;
4

                    
5
use
6
	mageekguy\atoum\test\adapter
7
;
8

                    
9
class invoker extends adapter\invoker
10
{
11
	protected $methodName = '';
12

                    
13
	public function __construct($methodName)100%
14
	{
15
		$this->methodName = strtolower($methodName);
16
	}
17

                    
18
	public function getMethodName()100%
19
	{
20
		return $this->methodName;
21
	}
22

                    
23
	public function offsetSet($call, $mixed)0%
24
	{
25
		if ($this->methodName == 'dir_readdir' && $mixed instanceof \mageekguy\atoum\mock\stream\controller)
26
		{
27
			$mixed = $mixed->getBasename();
28
		}
29

                    
30
		return parent::offsetSet($call, $mixed);
31
	}
32
}