Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")
aaronhall wrote:It doesn't look like $pictureName is being set before you call testAddition()
No, that's not the problem. Unit testing frameworks blindly run any methods which start with the name "test" such as "testFoo" "testing" etc etc. They don't pass arguments, they just run them. That's where the error comes from. Since the method is part of the test suite (i.e. it extends PHPUnit_TestCase) then it's being run automatically.