Skip to content

little mind-breaker about unit testing legacy code

Notifications You must be signed in to change notification settings

FoPi/legacyfactor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

legacyfactor - a mind-breaker about unit testing and legacy code

Under src directory you will find examples of bad program designs. Every example dir is a unique problem. Your task is refactor the code to make it testable and cover the class (or part of the class) with tests.

Imagine that these classes are part of a big and complex application so you are not allowed to change the signatures of methods nor the interface of a class because somewhere it will break the application, but if needed you can add new classes and methods.

If you would like to try to solve these problems, feel free to fork the repo and send me the link in email.

Happy coding!

About

little mind-breaker about unit testing legacy code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%