News Feed
Sections




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

Codeception Blog:
Introduction to Codeception
January 25, 2012 @ 10:19:59

On the Codeception blog there's an introduction to the Codeception tool, a behavior-driven framework written in PHP (in the spirit of Behat).

How often do you see PHP projects with no line of test written? From my experience, this situation happens quite often. We should state the unpleasant fact that tests are not so popular around the PHP world. Surely, the advanced developers with 5+ years of experience in PHP and other programming languages understand importance of testing and PHPUnit usage. But juniors and seniors are just skipping testing and, therefore, produce unstable web applications.

A code example of the framework in use is included in the post - a test on a class using methods like "wantTo", "amOnPage", "fillField" and "click". The installation is pretty simple and it gives you a quick way to start working on acceptance, functional and unit tests. In BDD fashion, the tests are written in a more "natural language" than traditional unit tests making them easier for the non-developers (like QA) to write. Their example loads a page, fills in some form fields and submits the form to check the result.

0 comments voice your opinion now!
behaviordriven development codeception testing tutorial functional


blog comments powered by Disqus

Similar Posts

Spindrop.us: Digg-style AJAX comment editing in PHP/symfony

NetTuts.com: Build Web Apps from Scratch with Laravel - The Eloquent ORM

Content with Style: Linkedin and Zend_Oauth

EchoDitto Labs Blog: How to Configure Eclipse PDT with Zend Server Debugger on MAMP for Drupal

DevShed: Working with Multiple Document Nodes with the DOM XML Extension in PHP 5


Community Events

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


introduction example application symfony2 performance opinion voicesoftheelephpant interview framework api laravel podcast configure release library series community conference part2 php7

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