cvs: pear /PHPUnit/Framework TestSuite.php

From: Date: Thu, 18 Mar 2004 14:09:20 +0000
Subject: cvs: pear /PHPUnit/Framework TestSuite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17509@lists.php.net to get a copy of this message
sebastian Thu Mar 18 09:09:20 2004 EDT Modified files: /pear/PHPUnit/Framework TestSuite.php Log: Update inline documentation. http://cvs.php.net/diff.php/pear/PHPUnit/Framework/TestSuite.php?r1=1.16&r2=1.17&ty=u Index: pear/PHPUnit/Framework/TestSuite.php diff -u pear/PHPUnit/Framework/TestSuite.php:1.16 pear/PHPUnit/Framework/TestSuite.php:1.17 --- pear/PHPUnit/Framework/TestSuite.php:1.16 Thu Mar 18 05:37:56 2004 +++ pear/PHPUnit/Framework/TestSuite.php Thu Mar 18 09:09:19 2004 @@ -12,7 +12,7 @@ // | license@php.net so we can mail you a copy immediately. | // +------------------------------------------------------------------------+ // -// $Id: TestSuite.php,v 1.16 2004/03/18 10:37:56 sebastian Exp $ +// $Id: TestSuite.php,v 1.17 2004/03/18 14:09:19 sebastian Exp $ // require_once 'PHPUnit/Framework/Test.php'; @@ -20,7 +20,7 @@ require_once 'PHPUnit/Framework/Warning.php'; /** - * A TestSuite is a Composite of Tests. It runs a collection of test cases. + * A TestSuite is a composite of Tests. It runs a collection of test cases. * * Here is an example using the dynamic test definition. * @@ -28,10 +28,13 @@ * $suite->addTest(new MathTest('testPass')); * * Alternatively, a TestSuite can extract the tests to be run automatically. - * To do so you pass the classname of your PHPUnit_Framework_TestCase class to - * the PHPUnit_Framework_TestSuite constructor. + * To do so you pass a Reflection_Class instance for your + * PHPUnit_Framework_TestCase class to the PHPUnit_Framework_TestSuite + * constructor. * - * $suite = new PHPUnit_Framework_TestSuite('classname'); + * $suite = new PHPUnit_Framework_TestSuite( + * new Reflection_Class('MathTest') + * ); * * This constructor creates a suite with all the methods starting with * "test" that take no arguments.

« previous php.pear.cvs (#17509) next »