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

Raphael Stolt's Blog:
Testing Phing buildfiles with PHPUnit
May 11, 2009 @ 09:33:20

Raphael Stolt has a new post looking at a technique to ensure that your Phing buildfile is how it should be via unit testing it.

While transforming some of the Ant buildfile refactorings described in Julian Simpson's seminal essay into a Phing context, it felt plainly wrong that I didn't have any tests for the buildfile to back me up on obtaining the pristine behaviour throughout the process. While Ant users can rely on an Apache project called AntUnit there are currently no tailor-made tools available for testing or verifying Phing buildfiles.

He includes an sample build file that will be tested and some PHPUnit code to execute the build and run several tests on the results like githubCloneAdhocTaskShouldBeDefined, targetLogBuildShouldBeAPrivateOne, propertyGithubReposDirShouldBeSet and more.

0 comments voice your opinion now!
test phing buildfile phpunit custom runner example


blog comments powered by Disqus

Similar Posts

Sebastian Bergmann's Blog: RC2 Is The New RC1 (PHPUnit)

David Coallier's Blog: PHP Namespaces (Part 1: Basic usage & gotchas)

Stoyan Stefanov's Blog: Image fun with PHP - part 2

Matthias Noback: Test Symfony2 commands using the Process component and asynchronous assertions

Volker Dusch's Blog: Running your Unittests everytime you save a file


Community Events











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


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

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