I built some functionality around laravel 4's query builder, and to test out a certain part, i need to do something like this:
$dateTimeObject = new DateTime; // some other stuff with this object
$q->shouldReceive('where')->once()->with('baz', '>=', $dateTimeObject);
The issue is, that whenever I do this, mockery tries to convert it to a string, and i get the error:
Object of class DateTime could not be converted to string
How do I get round this ?
(I am using phpunit and mockery for testing)