News Feed
Jobs Feed
Sections




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

Padraic Brady's Blog:
PHPMutagen Mutation Testing for PHP5
December 05, 2007 @ 09:32:00

In another behavior-driven development related post on his blog, Padraic Brady talks about mutation testing and a library he's put together to support it in PHP - PHPMutagen.

As I said in my previous entry I was thinking about how to write a Mutation Testing engine. The "braindump" was to use PHP's built in Tokenizer to break down a class file into digestible pieces which could be mutated, and then reconstructed into a mutated file. Once you allow for a working copy of the original source (let's not mutate the original!) it turned out to be a reasonable approach.

He's not releasing it just yet ("don't get too excited until I find some time to scan through it again") but he does share some sample output from his test run - one instance where all is well and the other where one mutant "escapes" and causes an exception.

0 comments voice your opinion now!
mutation testing php5 phpmutagen behavior development mutation testing php5 phpmutagen behavior development


blog comments powered by Disqus

Similar Posts

DevShed: Handling Cookies and File Data with the Factory Pattern in PHP 5

Davey Shafik\'s Blog: php|tek Day 2

HowTo Forge: How To Harden PHP5 With Suhosin On Fedora 7

DevShed: Working with Private Properties to Protect PHP 5 Class Data

Kana Yeh's Blog: Review Ivo Jansch’s Guide to Enterprise PHP development


Community Events











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


application symfony2 hhvm language release introduction install podcast database code performance component facebook framework threedevsandamaybe hack composer unittest security package

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