/** * Builds initial reflection object. * @param string $class Class to be mocked. * @param string $mock_class New class with identical interface, * but no behaviour. */ function __construct($class, $mock_class) { $this->class = $class; $this->mock_class = $mock_class; if (!$this->mock_class) { $this->mock_class = 'Mock' . $this->class; } $this->mock_base = SimpleTest::getMockBaseClass(); $this->reflection = new SimpleReflection($this->class); }
function MockGenerator($class, $mock_class) { $this->_class = $class; $this->_mock_class = $mock_class; $this->_mock_base = SimpleTest::getMockBaseClass(); $this->_reflection = new SimpleReflection($this->_class); }
function __construct($class, $mock_class) { $this->_class = $class; $this->_mock_class = $mock_class; $this->_mock_base = SimpleTest::getMockBaseClass(); $this->_reflection = new SimpleReflection($this->_class); }