PHPUnit - disable the original constructor in Mockery

I want to use Mockery and change this:

$mockFoo = $this->getMockBuilder('Foo') ->disableOriginalConstructor() ->getMock(); 

:

 $mockFoo = m::mock('Foo'); 

But I do not know how to disable the original constructor in Mockery. Please help me if you can. :-)

+6
source share
1 answer

Mockery does not call the constructor if no parameters are specified:

 \Mockery::mock('Foo'); 
+8
source

All Articles