From Test::Simple to Test::Extreme - Advanced Testing Topics 37

Object Oriented Testing

  • Even if we are careful to keep our objects decoupled, they still have to interact with each other

  • Test::MockObject lets us create fake instances of the objects our module depends on

  • The fake instances have known characteristics, and predictable behaviour

  • We can isolate one object without touching the rest of the system

 

YAPC::CA << Previous | Index | Next >>
Copyright © 2003 Michael Graham