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

UncleCode.com:
Install PHPUnit Manually without Pear for a Single Project
Oct 12, 2010 @ 17:39:40

From the UncleCode.com blog there's a recent post showing you how to install PHPUnit manually without PEAR if you either don't have the access or just want to install it yourself.

This tutorial is an easy start to test your PHP source code which is build using classes i.e. OOP’s with/without wamp/xamp doesn’t really matter. The key to PHPUnit installation is set correct include path of your PHPUnit directory and extend correct phpUnit class in test case file.

They give you a quick eight step process that'll have you up and running in no time (including the download of the latest PHPUnit version). He shows how to set the paths in a sample unit test file to point to the right location for PHPUnit based on the root directory of your application. The runner can then find the correct files and classes when you run your tests.

tagged: install phpunit manual custom tutorial pear adhoc

Link:

Raphael Stolt's Blog:
Creating and using Phing ad hoc tasks
Apr 20, 2009 @ 13:49:38

Raphael Stolt has another post dealing with the Phing (PHP-based) build tool. This time he talks about making ad hoc tasks inside of your build scripts.

Sometimes there are build scenarios where you'll badly need a functionality, like adding a MD5 checksum file to a given project, that isn't provided neither by the available Phing core nor the optional tasks. [...] The following post will try to outline how to define and use these inline tasks, by sketching an ad hoc task that enables the build orchestra to clone Git repositories from GitHub during a hypothetical workbench setup.

He creates an example task - running a "clone" command via github - complete with the code for both sides of the feature; the PHP code to create the task and how to use it in your build file.

tagged: tool build example clone github task adhoc phing create

Link:


Trending Topics: