DEV Community

Discussion on: Code Smell 82 - Tests Violating Encapsulation

Collapse
yoursunny profile image
Junxiao Shi

Test creates an instance of Hagnman, not Hangman.

 $hangmanGame = new Hagnman(new MockRandomizer());
Enter fullscreen mode Exit fullscreen mode
Thread Thread
mcsee profile image
Maxi Contieri Author

corrected ! thank you very much!