Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 1
0.00%
0 / 11
CRAP
0.00%
0 / 44
AbstractStub
0.00%
0 / 1
0.00%
0 / 11
182
0.00%
0 / 44
 bindParameters($params)
0.00%
0 / 1
12
0.00%
0 / 12
 __mocked()
0.00%
0 / 1
2
0.00%
0 / 4
 __set($key, $value)
0.00%
0 / 1
2
0.00%
0 / 3
 __isset($key)
0.00%
0 / 1
2
0.00%
0 / 3
 __unset($key)
0.00%
0 / 1
2
0.00%
0 / 3
 __call($method, $args)
0.00%
0 / 1
2
0.00%
0 / 3
 expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
0.00%
0 / 1
2
0.00%
0 / 3
 staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)
0.00%
0 / 1
2
0.00%
0 / 3
 __phpunit_getInvocationMocker()
0.00%
0 / 1
2
0.00%
0 / 4
 __phpunit_getStaticInvocationMocker()
0.00%
0 / 1
2
0.00%
0 / 3
 __phpunit_verify()
0.00%
0 / 1
2
0.00%
0 / 3
<?php
abstract class AbstractStub implements PHPUnit_Framework_MockObject_MockObject, \Codeception\Util\Stub\Stub
{
protected $mockedClass;
/**
* @var PHPUnit_Framework_MockObject_MockObject
*/
protected $mock;
public function bindParameters($params) {
foreach ($params as $param => $value) {
if (!is_callable($value)) {
$this->mock->$param = $value;
continue;
}
$this->mock->
expects(new PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount)->
method($param)->
will(new PHPUnit_Framework_MockObject_Stub_ReturnCallback($value));
}
}
public function __mocked()
{
return $this->mockedClass;
}
public function __set($key, $value) {
$this->mock->$key = $value;
}
public function __isset($key) {
return isset($this->mock->$key);
}
public function __unset($key) {
unset($this->mock->$key);
}
public function __call($method, $args) {
return call_user_func_array(array($this->mock, $method), $args);
}
public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) {
return $this->mock->expects($matcher);
}
public static function staticExpects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) {
throw new Exception('Not implemented');
}
public function __phpunit_getInvocationMocker()
{
$this->mock->__phpunit_getInvocationMocker();
}
public static function __phpunit_getStaticInvocationMocker() {
throw new Exception('Not implemented');
}
public function __phpunit_verify() {
$this->mock->__phpunit_verify();
}
}