Slide 30
Slide 30 text
Two sides of the contract
TicketPriceCalculator
TicketRepository TaxCalculator
DoctrineTicketRepository
● An interface is a contract
● User of the interface makes an
assumption about the behaviour
with test doubles
● Implementation of the interface
needs to prove it implements the
contract fully
● For each expectation in the unit
test there should be at least one
test to verify that expectation