Don't return PHPUnit_Framework_MockObject_MockObject when not needed