Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 1
0.00%
0 / 1
CRAP
0.00%
0 / 7
EmptyStub
0.00%
0 / 1
0.00%
0 / 1
6
0.00%
0 / 7
 __construct($class, $params = array()
0.00%
0 / 1
6
0.00%
0 / 7
<?php
class EmptyStub extends AbstractStub
{
function __construct($class, $params = array())
{
if (!class_exists($class)) throw new \RuntimeException("Stubbed class $class doesn't exist");
$this->mockedClass = $class;
$this->mock = PHPUnit_Framework_MockObject_Generator::getMock($class, array(), array(), '', false);
$this->bindParameters($params);
}
}