Assertions Message Parameter (SimpleTest)

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Assertions Message Parameter (SimpleTest)

Post by Ollie Saunders »

Does anybody use the 3rd parameter (message) on each of the assert method in SimpleTest? If so, why? Should I? What are they for?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I do. I use them as comments about the specific test so it's a bit more useful then some line number.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

That was what I was thinking. Could you post an example so I can see the sort of stuff you put in there?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Looking through my code trees, I can't find any that I can post. Sorry.
Post Reply