News Feed
Sections




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

Wim Godden's Blog:
Automated PHP 5.3 compatibility testing for your (old) code
December 22, 2010 @ 09:02:10

In this new post to his blog today, Wim Godden looks at how you can use the PHPUnit unit testing framework to be sure your applications are ready to move to a PHP 5.30-only world.

So you or your team has built anywhere between 5 and 500 projects in PHP 4, 5.1 and 5.2 over the past 5 years. And now PHP 5.3 is there, offering a lot of very interesting features, including namespace support, late static binding (finally !), closures, nested exceptions and a bunch more (see the new feature list). So naturally, you'd like to upgrade. But doing so might break some old code.

He suggests a few different options - just run your unit tests and hope for the best, test the application's code directly or, his preference, run compatibility tests with the help of PHP_CodeSniffer and this new sniff he created. The sniff finds things like deprecated functions hanging around from pre-5.3 times as a part of a subset that the code sniffer can easily find.

2 comments voice your opinion now!
automate test unittest phpcodesniffer phpcs upgrade


blog comments powered by Disqus

Similar Posts

The Bakery: Writing an easy to use A/B test helper with CakePHP and jquery

Alex King's Blog: WordPress Security, Upgrades and Backups

ZendCasts.com: Unit Testing Models

Ilia Alshanetsky's Blog: 5.2.1RC2 Available for Testing

Joshua Eichorn\'s Blog: HTML_AJAX 0.3.4 is released


Community Events

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


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

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