PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Nov 16, 2018 4:17 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Jul 19, 2009 2:23 pm 
Offline
Forum Regular

Joined: Tue Jul 05, 2005 3:54 am
Posts: 945
Location: Sofia, Bulgaria
Hi.
Currently we have a project that is using cakephp framework for one reason or another. As cakephp is integretaed with simpletest we have all our tests implemented like so. Lately I am reading on continuous integration and stuff and got stuck with phpundercontrol But seems it's more well integrated with phpunit.

Has anyone used it with simpletest or perhaps some easy simpletest to phpunit transition.

Any pointers are more than welcome.


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

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
The biggest issue is the paramater orders for expected and actual are reversed,

assertEquals stays the same

in simpletest assertReference gets changed to assertSame for phpunit, any places you are using simpletests assert method assertSame needs to be changed to assertIdentical

Creating mock objects is different if you use constructor signatures, if you have your tests well factored it wont be as big of a pain tho


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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