Talk in English - UK at International PHP Conference 2010
View Slides: http://www.slideshare.net/sebastian_bergmann/state-of-the-mocks
Short URL: https://joind.in/talk/5d121
When we are writing a test in which we cannot (or chose not to) use a real dependency, we can replace it with a Test Double. PHPUnit supports the automatic generation of stubs and mocks for this. Alternative mock object libraries such as Mockery and Phake promise to be more powerful yet to be easier to use. This session compares the various mock object implementations for PHP that are available.