PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Dec 11, 2018 11:13 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Symfony unit testing
PostPosted: Thu May 27, 2010 2:00 pm 
Offline
Forum Newbie

Joined: Thu May 27, 2010 10:22 am
Posts: 1
Location: Leeds, United Kingdom
I'm about to quote for a piece of work which the client has specified should be done in CakePHP. The client has also specified that unit testing must be done. I know the Symfony framework has unit testing 'built in' as it were. Is this the case with CakePHP or would I have to use PHPUnit?


Top
 Profile  
 
 Post subject: Re: Symfony unit testing
PostPosted: Thu May 27, 2010 2:29 pm 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine
From what I heard the preferred unit testing framework for cake is SimpleTest.


Top
 Profile  
 
 Post subject: Re: Symfony unit testing
PostPosted: Wed Jun 16, 2010 11:53 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
The advantage of PHPUnit is running parts of your tests. When your app is a few months old with a few hundred or thousand tests, it can take minutes for the tests, instead of the desired seconds. PHPUnit lets you run individual tests, all tests in a given file, all test files in a given directory (recursively). SimpleTest is just that, too simple for this need.

Using the same testing framework as your MVC framework is a novel idea, but in practice you don't really need to run all those tests at the same time, so it wouldn't matter if their unit tests weren't interoperable.


Top
 Profile  
 
 Post subject: Re: Symfony unit testing
PostPosted: Wed Jun 16, 2010 1:02 pm 
Offline
DevNet Master
User avatar

Joined: Mon Feb 24, 2003 11:12 am
Posts: 2572
Location: The Republic of Texas
Weirdan wrote:
From what I heard the preferred unit testing framework for cake is SimpleTest.

Yes, and there's an entire section in manual about it :wink: http://book.cakephp.org/view/1196/Testing

_________________
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.


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