Timeline for Unit Tests code duplication?
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 5, 2020 at 19:07 | comment | added | bdsl | And if you have many testMethods you can call getArithmetic from the setUp method and assign the arithmetic to an instance property. I just learned this technique at youtube.com/watch?v=RbSqXFUfRMU&feature=youtu.be&t=1960 from a talk by Sebastian Bergmann, author of PHPUnit | |
| Oct 10, 2012 at 14:36 | vote | accept | Random42 | ||
| Aug 10, 2012 at 15:19 | history | answered | rmaruszewski | CC BY-SA 3.0 |