This is a question similar to one below about automation but I hope different enough to warrant this post.
I'm faced with checking the values that a website produces. These values are in a table. I'd like to make sure these values match the values in a database. Can I use SimpleTest or PHPUnit for this or is some other approach required?
Value verification in tables
Moderator: General Moderators
Re: Value verification in tables
In short: Yes.
In Long: Depends on how you access the data.. how the tables are formulated, how the data is retrieved, how the data is presented, etc.
In Long: Depends on how you access the data.. how the tables are formulated, how the data is retrieved, how the data is presented, etc.
Re: Value verification in tables
If you have a model for your table, with some kind of array or API access, test that, then implement a decorator pattern for rendering and test your decorators as well ( seperately ). There is some html test cases for zend_form you may find interesting