Qafoo GmbH - passion for software quality ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Author: Tobias Schlitt :Date: Sun, 02 Mar 2014 22:56:44 +0100 :Revision: 2 :Copyright: All rights reserved ====================== Getting Fixtures Right ====================== :Keywords: phpunit, automated testing, fixture, mock, stub, spy, database, setup, tear down :Description: What makes a good fixture? This talk dives through the variety of automated test approaches and show how fixtures can be created, what principles you should obey to and techniques to avoid pitfalls. Every kind of automated test requires you to create fixtures. Be it the input objects to unit test a method, setting up an object structure for integration testing or creating a database for system tests. But what makes a good fixture? In this talk we dive through the variety of automated test approaches and show how fixtures can be created, what principles you should obey to and techniques to avoid pitfalls. Find the `code examples`__ from this talk on Github. __ https://github.com/QafooLabs/fixtures Watch online ------------ .. image:: /images/talks/14_02_confoo_getting_fixtures_right/slide_0.png#32 :class: slides `Download PDF`__ __ /talks/14_02_confoo_getting_fixtures_right.pdf Get us on-site -------------- Successful projects require a balanced mix of tests that is easy to maintain, provides safety to business and developers and does not slow down product evolution. Boost your team with direct experience transfer through a `training on automated testing`__. __ /services/training.html