[TYPO3-dev] T3unit skeleton
Robert Lemke
robert at typo3.org
Mon Apr 3 08:42:47 CEST 2006
Hi Elmar,
Elmar Hinz wrote:
> * runs within T3Unit
yes that might run with T3Unit, but I can't promise that it always will
because you inherit the PHPUnit2 classes directly. If you write your tests
specifically for T3Unit, please always define your class like this:
class tx_ter_soap_testcase extends tx_t3unit_testcase {
public function __construct ($name) {
parent::__construct ($name);
}
...
Cheers,
Robert
> require_once ('PHPUnit2/Framework/TestCase.php');
> require_once ('PHPUnit2/Framework/TestSuite.php');
>
> /**
> * Test class for tx_lib_t3Loader
> */
> class tx_xxx_testcase extends PHPUnit2_Framework_TestCase {
--
Robert Lemke
TYPO3 Association - Research & Development
Member of the board
http://association.typo3.org
More information about the TYPO3-dev
mailing list