Sebastian Bergmann has pointed out a new offering that PHPUnit will have starting with version 3.2 - TestNG-style data parameters.

He includes a test case example that sets up a test method (dataProvider) that checks the input against the assert to ensure that it matches - in those case, that it matches an integer value.

The method specified by the @dataProvider annotation returns an array or an Iterator object that contain argument arrays. For each of these arrays a test object is created that will run the test method with the argument from the array.

Sebastian Bergmann has pointed out a new offering that PHPUnit will have starting with version 3.2 - TestNG-style data parameters.

He includes a test case example that sets up a test method (dataProvider) that checks the input against the assert to ensure that it matches - in those case, that it matches an integer value.

The method specified by the @dataProvider annotation returns an array or an Iterator object that contain argument arrays. For each of these arrays a test object is created that will run the test method with the argument from the array.