I want use Mockery and change this:
$mockFoo = $this->getMockBuilder('Foo')
->disableOriginalConstructor()
->getMock();
to this:
$mockFoo = m::mock('Foo');
But I don't know how disable original constructor in Mockery. Please help me if You can. :-)
Mockery does not call constructor if no parameters are specified:
\Mockery::mock('Foo');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With