News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Getting Started With Phpspec
May 12, 2014 @ 13:55:10

The NetTuts.com site has a new tutorial that want to help get you started with PHPSpec, the PHP-based tool to help with behavior-driven development.

In this short, yet comprehensive, tutorial, we'll have a look at behavior driven development (BDD) with phpspec. Mostly, it will be an introduction to the phpspec tool, but as we go, we'll touch on different BDD concepts. BDD is a hot topic these days and phpspec has gained a lot of attention in the PHP community recently.

They briefly introduce behavior-driven development (BDD) and where the PHPSpec tool fits into the picture. They guide you through installation of the tool (via Composer) and some configuration updates to get things set up. From there, they help you write your first spec, a test to see if a "TaskCollection" can be created. They build on this simple test adding in checks for adding tasks, making the collection countable and working with expectations and promises. The last part of the tutorial mentions how to make custom matchers like "beTrue" and "beFalse" and the output of the full test set.

0 comments voice your opinion now!
phpspec tutorial introduction behaviordriven development bdd

Link: http://code.tutsplus.com/tutorials/getting-started-with-phpspec--cms-20919

blog comments powered by Disqus

Similar Posts

Dan Scott\'s Blog: Book Review - No Nonsense XML Web Development With PHP (Build Your Own)

Benjamin Eberlei's Blog: Trying a Two Step PEAR/PHAR approach to develop and deploy

Zend Developer Zone: Live Blogging From php/db|works 2006

DevShed: Handling Entries for a Blogger Built with PHP

Zend Developer Zone: AJAX Chat Tutorial Part 2


Community Events





Don't see your event here?
Let us know!


interview bugfix tips language series framework release conference podcast zendserver community api threedevsandamaybe laravel code symfony introduction deployment voicesoftheelephpant list

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework