News Feed
Sections




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

Synfony Project:
New testing framework
September 19, 2006 @ 07:44:42

On the Synfony project's blog, they've posted about a new testing framework that they've implemented for their framework based around something they call "lime".

If you keep an eye on the timeline, you probably saw that the symfony unit tests have been completely reworked lately. This is because we switched from simpletest, which was fine but had side effects when functional tests were executed all at once, to our own testing framework, lime.

Lime is more lighweight than PHPUnit or simpletest and has several advantages. First, it launches test files in a sandbox to avoid strange effects between each test file run (one of the reasons we were unable to fix the old symfony core tests). It also introduces a new sfBrowser, sfTestBrowser and more importantly sfDomCssSelectorBrowser that allow you to write functionnal tests with ease. It is not backward compatible but is a lot more powerful than the old system. Oh, and it holds in a single file, lime.php, without any dependence.

They show some examples of its usage (and a note on which tests will need to be updated) as well as the output that would come of it. They've also included some sample tests (in the "test/" folder of the release) if you'd like to check it out more throughly.

0 comments voice your opinion now!
testing framework lime simpletest light example results testing framework lime simpletest light example results


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Accessing DB2 Data Inside of i5/OS

Cocoliso's Blog: Adding A Syntax Highlighter To Your Site: The Power Of Geshi

International PHP Magazine: Poll Question: What is the Top Mistake That PHP Coders Commit?

CodeIgniterPodcast.com: Ep. #4 - Changes to CodeIgniter 2.0 and the Community Branch

Jani Hartikainen's Blog: Zend_Acl part 1: Misconceptions and simple ACLs


Community Events





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


interview install threedevsandamaybe opinion community developer introduction refactor laravel list testing code configure language series podcast symfony2 release unittest framework

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