mageekguy\atoum\php\mocker\adapter: lines coverage

100% of 22

OPs

100% of 5

Lines

75% of 4

Branches

50% of 2

Paths
Method OPs OPs % Lines Line % Branches Branches % Paths Path %
mageekguy\atoum\php\mocker\adapter::setInvoker() 22 100% 5 100% 4 75% 2 50%
#
1
<?php
2

                    
3
namespace mageekguy\atoum\php\mocker;
4

                    
5
use
6
	mageekguy\atoum\test,
7
	mageekguy\atoum\php\mocker
8
;
9

                    
10
class adapter extends test\adapter
11
{
12
	protected function setInvoker($functionName, \closure $factory = null)100%
13
	{
14
		if ($factory === null)
15
		{
16
			$factory = function($functionName) { return new mocker\adapter\invoker($functionName); };
17
		}
18

                    
19
		return parent::setInvoker($functionName, $factory);
20
	}
21
}