Testing Framework for PHPUnit3
Welcome to tilllate’s first English contribution. In order to get this blog onto PlanetPHP there will be a series of English and PHP-only posts. My name is Maarten Manders and I’m one of tilllate’s newest members in the family. You might know me from Sitepoint or Webtuesday.
The PHPUnit3 manual says: “One of the goals of PHPUnit is that tests should be composable.” This can be done using The PHPUnit test suites.
< ?php
// assembling suite
$suite = new PHPUnit_Framework_TestSuite('AllTests');
$suite->addTestSuite(‘FirstTest’);
$suite->addTestSuite(‘Second Test’);
// running suite
PHPUnit_TextUI_TestRunner::run($suite);
?>
