By default, PHPSpec uses Prophecy as its mocking framework. Prophecy doesn't support partial mocks (which you are trying to do). If you want to use Prophecy, you'll have to refactor your app in a way that doesn't require partial mocks for testing. Alternatively, you could use Mockery for the tests that requires the partial mocking. I don't really recommend the last option, since you'll be testing a mocked object instead, but I think that's the options you have!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community