PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Jul 22, 2018 7:56 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jul 14, 2009 9:28 pm 
Offline
Forum Newbie

Joined: Tue Jul 14, 2009 9:03 pm
Posts: 1
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?


Top
 Profile  
 
PostPosted: Wed Jul 29, 2009 5:13 am 
Offline
DevNet Master
User avatar

Joined: Mon Sep 19, 2005 6:24 am
Posts: 3587
Location: London
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.


Top
 Profile  
 
PostPosted: Sat Aug 08, 2009 12:53 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group