Qafoo GmbH - passion for software quality ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Author: Benjamin Eberlei :Date: Fri, 13 Sep 2013 17:36:59 +0200 :Revision: 2 :Copyright: All rights reserved =================================== Testing and Refactoring Legacy Code =================================== :Keywords: Refactoring, Legacy-Code, Legacy-Testing, Testing, Behat, PHPUnit :Description: This workshop introduces techniques for testing and refactoring legacy code. Dealing with legacy code is a frequent task for developers. To reduce the risk of introducing new bugs while working on legacy code, learning the techniques is an essential ingredient to increasing productivity. This workshop introduces techniques for testing and refactoring legacy code. Dealing with legacy code is a frequent task for developers. To reduce the risk of introducing new bugs while working on legacy code, learning the techniques is an essential ingredient to increasing productivity. After the workshop you should be able to work with legacy code more effectivly. ------- Content ------- Topics covered in this course block include: - Discussion of Legacy Code Problems - Static Dependencies - Global State - Mutability of State - Missing Abstractions - Testing Legacy Code - From the Outside with Behat - From the Inside with PHPUnit - Refactoring - Breaking up Dependencies - Branch by Abstraction - Extract Method/Class/Package **Length**: 1 day **Prerequisites**: - Basic Knowledge of PHPUnit or Behat Related course blocks: * `Object Oriented Design`__ * `Automated Testing in PHP`__ __ /services/training/topics/object_oriented_design.html __ /services/training/topics/testing_with_phpunit.html