Support the ongoing development of Laravel.io →
posted 10 years ago
Testing
Last updated 1 year ago.
0

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!

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.