Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • 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 Commented Aug 5, 2020 at 19:07