Support the ongoing development of Laravel.io →
Architecture Testing

Currently I'm trying to improve my TDD (PHPspec) in Laravel, though I'm facing several problems when classes need to work with external services. Think about a mailserver (IMAP) which I need to read out.

Should I just hardcode the responses (and mime strings) in the Spec class or connect a "testing" imap account somewhere?

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

baasjef baasjef Joined 11 Feb 2014

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.

© 2025 Laravel.io - All rights reserved.