Back to the Learning

Beep Beep. Subscription Required.

Laracasts is packed full with over 1,000 lessons just like this one.
Sign up to get full access or log in to your account and sit back.

About This Episode

A mock allows us to enforce that certain messages are sent to various collaborators. A stub is a bit different. Think of a stub as a stand-in that returns any kind of hard-coded data. "When this method is called, return false." Let's dig into this idea a bit more.

Published on Nov 11th, 2015.

Episodes

    1. Unit Testing

      EPISODE 1 8:34 Free
    2. Mocks

      EPISODE 2 9:16
    3. Stubs

      EPISODE 3 7:04
    4. Dummies

      EPISODE 4 4:02
    5. Factories

      EPISODE 5 8:06
    6. Integration Testing

      EPISODE 6 6:03
    7. BDD and Conversations

      EPISODE 7 10:27
Back to Series Button