cvs: pear /PHPUnit PHPUnit_TestCase.php PHPUnit_TestResult.php PHPUnit_TestSuite.php

From: Date: Thu, 11 Jul 2002 16:08:35 +0000
Subject: cvs: pear /PHPUnit PHPUnit_TestCase.php PHPUnit_TestResult.php PHPUnit_TestSuite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5046@lists.php.net to get a copy of this message
sebastian Thu Jul 11 12:08:35 2002 EDT Modified files: /pear/PHPUnit PHPUnit_TestCase.php PHPUnit_TestResult.php PHPUnit_TestSuite.php Log: Cleanup. Index: pear/PHPUnit/PHPUnit_TestCase.php diff -u pear/PHPUnit/PHPUnit_TestCase.php:1.3 pear/PHPUnit/PHPUnit_TestCase.php:1.4 --- pear/PHPUnit/PHPUnit_TestCase.php:1.3 Tue Apr 9 13:49:20 2002 +++ pear/PHPUnit/PHPUnit_TestCase.php Thu Jul 11 12:08:33 2002 @@ -16,7 +16,7 @@ // | Author: Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: PHPUnit_TestCase.php,v 1.3 2002/04/09 17:49:20 sebastian Exp $ +// $Id: PHPUnit_TestCase.php,v 1.4 2002/07/11 16:08:33 sebastian Exp $ // require_once 'PHPUnit/PHPUnit_Assert.php'; @@ -173,8 +173,8 @@ * @return object * @access protected */ - function createResult() { - // not implemented + function &createResult() { + return new PHPUnit_TestResult; } /** Index: pear/PHPUnit/PHPUnit_TestResult.php diff -u pear/PHPUnit/PHPUnit_TestResult.php:1.5 pear/PHPUnit/PHPUnit_TestResult.php:1.6 --- pear/PHPUnit/PHPUnit_TestResult.php:1.5 Thu Jul 11 11:49:36 2002 +++ pear/PHPUnit/PHPUnit_TestResult.php Thu Jul 11 12:08:33 2002 @@ -16,7 +16,7 @@ // | Author: Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: PHPUnit_TestResult.php,v 1.5 2002/07/11 15:49:36 sebastian Exp $ +// $Id: PHPUnit_TestResult.php,v 1.6 2002/07/11 16:08:33 sebastian Exp $ // require_once 'PHPUnit/PHPUnit_TestFailure.php'; @@ -210,17 +210,6 @@ */ function runCount() { return $this->_runTests; - } - - /** - * Runs a TestCase. - * - * @param object - * @param object - * @access public - */ - function runProtected($test, $p) { - // not implemented } /** Index: pear/PHPUnit/PHPUnit_TestSuite.php diff -u pear/PHPUnit/PHPUnit_TestSuite.php:1.5 pear/PHPUnit/PHPUnit_TestSuite.php:1.6 --- pear/PHPUnit/PHPUnit_TestSuite.php:1.5 Tue Apr 9 13:49:20 2002 +++ pear/PHPUnit/PHPUnit_TestSuite.php Thu Jul 11 12:08:33 2002 @@ -16,7 +16,7 @@ // | Author: Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: PHPUnit_TestSuite.php,v 1.5 2002/04/09 17:49:20 sebastian Exp $ +// $Id: PHPUnit_TestSuite.php,v 1.6 2002/07/11 16:08:33 sebastian Exp $ // require_once 'PHPUnit/PHPUnit_TestCase.php'; @@ -83,18 +83,6 @@ } /** - * - * - * @param string - * @param array - * @param string - * @access private - */ - function addTestMethod($m, $names, $constructor) { - // not implemented - } - - /** * Adds the tests from the given class to the suite. * * @param string @@ -129,28 +117,6 @@ } /** - * Converts the stack trace into a string. - * - * @param object - * @return string - * @access private - */ - function exceptionToString($t) { - // not implemented - } - - /** - * Gets a constructor which takes a single String as its argument. - * - * @param string - * @return string - * @access private - */ - function getConstructor($theClass) { - // not implemented - } - - /** * Returns the name of the suite. * * @return string @@ -173,13 +139,14 @@ } /** - * + * Runs a test. * * @param object * @param object * @access public */ function runTest(&$test, &$result) { + $test->run($result); } /**

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