PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Aug 12, 2020 4:38 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jan 13, 2010 3:45 pm 
Offline
Forum Newbie

Joined: Fri Jul 17, 2009 12:57 pm
Posts: 8
What's recommended for beginners? I'm leaning towards PHPSpec with all the BDD thing they got going for them. I'm wondering if this will be a disadvantage in the long run. Are all unit test framework easy to pick up and learn?

Thank you.


Top
 Profile  
 
PostPosted: Thu Jan 21, 2010 8:13 pm 
Offline
DevNet Evangelist

Joined: Tue Dec 21, 2004 6:00 pm
Posts: 6267
Location: Winnipeg
I would think SimpleTest is probably easiest (hence the name) to get started with and can technically accomplish the same end result as PHPSpec in terms of BDD, but using the prefix 'test' as opposed to 'should' which *might* influence your ability to properly specify the behavior as opposed to testing the result, which there is a difference.

If you have never written tests before, then it might be benefitial to start with BDD, hard to say, it's certainly what the advocates would suggest. Then again, personally, I think learning TDD before BDD is important, but there are others who would argue, doing TDD correctly is doing BDD.

SimpleTest, PHPUnit and PHPSpec (I assume) all support mock objects which is technically required for testing behavior (a blur on nomenclature there -- as I believe to purists of either technique BDD/TDD would not use those two words in the same sentance).

I think it boils down to personal preference, read the docs for each, setup each, which ever you get u and using fastest and feel most at home with, use.

Cheers,
Alex


Top
 Profile  
 
PostPosted: Sat Jan 23, 2010 10:19 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
PHPUnit is the only thing with code coverage & file based test aggregation (you can say hey phpunit run all the tests in this folder over there recursively)


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 5 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