|
From: SourceForge.net <no...@so...> - 2011-11-30 18:05:10
|
Bugs item #3433847, was opened at 2011-11-05 05:09 Message generated for change (Comment added) made by pp11 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3433847&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: ZermattChris () >Assigned to: Perrick Penet (pp11) Summary: addTest() should be add() Initial Comment: I'm getting errors from the online docs below http://www.simpletest.org/en/group_test_tutorial.html Changing the line: $this->addTest(new TestOfLogging()); to: $this->add(new TestOfLogging()); seems to have solved the issue. A test suite A test case does not function alone for very long. When coding for real we usually want to run as many tests as quickly and as often as we can. This means grouping them together into test suites that could easily include every test in the application. Firstly we create a test suite called all_tests.php in the tests folder... <?php require_once(dirname(__FILE__) . '/simpletest/autorun.php'); require_once('log_test.php'); class AllTests extends TestSuite { function __construct() { parent::__construct(); $this->addTest(new TestOfLogging()); } } ?> We hardly notice the difference when things work... ---------------------------------------------------------------------- >Comment By: Perrick Penet (pp11) Date: 2011-11-30 10:05 Message: The correction was applied to the source documentation. It should find its way to the website sooner or later. Thanks for submitting the bug ! Yours, Perrick ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3433847&group_id=76550 |