When I\'m unit-testing my php code with PHPUnit, I\'m trying to figure out the right way to mock an object without mocking any of its methods.
The problem is that if
Or you can just use getMock() directly.
getMock()
$mock = $this->getMock('MyClass', null, array(), null, false);