PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Nov 28, 2014 5:57 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Sep 13, 2008 5:19 am 
Offline
Forum Regular

Joined: Tue Jul 05, 2005 3:54 am
Posts: 945
Location: Sofia, Bulgaria
Hi devs,
Lets asume each unit (class or whatever standalone piece) is tested and working. How do you guys test those units working together. What tools are you using. Only think I am aware of right now is that I can use simpletest to test frontend, hence somehow testing units working together. What else might you recommend? Do you use unit testing frameworks (phpunit,simpletest etc) for integration testing?


Top
 Profile  
 
PostPosted: Fri Oct 03, 2008 8:49 am 
Offline
DevNet Master

Joined: Thu Jan 30, 2003 9:26 pm
Posts: 2893
Location: Glasgow, Scotland
The SimpleTest web tester is very good.

However I'd recommend always starting with a web test and then working your way down from their. Have you tried test-driven design?


Top
 Profile  
 
PostPosted: Fri Oct 03, 2008 2:10 pm 
Offline
Forum Regular

Joined: Tue Jul 05, 2005 3:54 am
Posts: 945
Location: Sofia, Bulgaria
I know all theory behind it but never really able to do in real project. Some day..oh some day I will :D


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 8:06 am 
Offline
DevNet Master
User avatar

Joined: Mon Sep 19, 2005 6:24 am
Posts: 3587
Location: London
Think of each behaviour, and write a test/spec for that. If $ObjectA->returnValue() should return an instance of ObjectB, write a test/spec for that. This is the simplest form of an Integration test.


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 10:16 am 
Offline
Forum Regular

Joined: Tue Jul 05, 2005 3:54 am
Posts: 945
Location: Sofia, Bulgaria
Yeah, my question was more like are there special libs for integration tests or you use phpunit for example again to test behaviour...like interaction of 3-5 objects.


Top
 Profile  
 
PostPosted: Mon Oct 06, 2008 8:18 pm 
Offline
DevNet Master
User avatar

Joined: Mon Sep 19, 2005 6:24 am
Posts: 3587
Location: London
Fitnesse if there is a version for PHP. If not, just use SimpleTest, PHPSpec or PHPUnit.


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Group