Archive for the ‘PHP’ Category

Gradle and PHP

Posted: June 19, 2010 in Groovy, PHP
Tags: ,

You may not realize this but the gradle website is in php. that basically means that you can also use gradle to build php websites including mvc framework ones. This will get interesting..

Php MVC Code Standards

Posted: January 19, 2010 in PHP, Symfony
Tags: ,

There is a nice tool called PHP CodeSniffer but not a good set of code standards for PHP MVC frameworks in PHP Code Sniffer format. The one I found for Symfony is somewhat old and missing items.

I should have something up at GitHUb this evening to correct that set of issues.

PHP Build For Testing

Posted: January 16, 2010 in PHP
Tags: , , , ,

One of the challenges in the increase in usable MVC frameworks is that each framework wants to  use its own unit test framework that is slightly different form PHPUnit. Yes, some CI servers have plugins to integrate those test xml report s in phpunit format but are often not updated depending upon whether they were implemented on the CI server side or the MVC framework  side.

Of course there will be times when the MVC Framework test harness is not enough and you may actually need the full phpunit. Because most CI servers can parse xml into the web dashboard what one could does is use a build script that calls a multiple purpose testrunner for  php such as stagerunner. You will notice in the bottom chart that it outputs JUnit xml for most PHP testrunners.

In a follow-up post I will post the ANT build script that I developed for use with the Symfony MVC framework.

Reblog this post [with Zemanta]

PHPLoc Phing Task

Posted: January 7, 2010 in PHP
Tags: ,

For those of us who are using PHPLoc 1.4.0, Raphael Stolt’s PHPLoc Phing task is based on 1.20 and so you need to make on little change. At line 6 change Xml.php to XML.php. The other soft error that occurs at this point you can safely ignore for now.