Testing Legacy Code - Safe Refactoring

Testing Legacy Code - Safe Refactoring

PHP UK Conference via YouTube Direct link

Refactoring Redirections

19 of 25

19 of 25

Refactoring Redirections

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Testing Legacy Code - Safe Refactoring

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 What is legacy code?
  3. 3 What is refactoring?
  4. 4 What is unit testing?
  5. 5 Why would I unit test?
  6. 6 A solution
  7. 7 A better solution
  8. 8 PHPUnit - installation
  9. 9 Anatomy of a unit test
  10. 10 Running the tests
  11. 11 Mocking - Caution!
  12. 12 Mockery - Installation
  13. 13 Mockery - Usage
  14. 14 A method that echoes
  15. 15 A static method call
  16. 16 Testing: hard-coded dependencies
  17. 17 Refactoring hard-coded dependencies
  18. 18 A hard-coded dependency
  19. 19 Refactoring Redirections
  20. 20 Refactoring Exiting
  21. 21 Refactoring: Updating a file
  22. 22 Fake filesystem
  23. 23 Testing: Spaghetti Code
  24. 24 Private methods
  25. 25 Time for a recap...

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.