Is there any way to set a class level variable within a mock object?
I have the mock object set similar to this:
$stub = $this->getMock('SokmeClass', array('method'));
$stub->expects($this->once())
->method('method')
->with($this->equalTo($arg1));
Win the real class there is a variable that needs to be set for it to work properly. How can I set that variable within a mock object?