|
From: Marcus B. <ma...@la...> - 2003-09-28 22:36:09
|
Hi. This release deprecates quite a few things that will later disappear come the Beta version. Mainly just name changes. 1) When including SimpleTest the following filenames have changed... simple_html_test.php --> reporter.php simple_mock.php --> mock_objects.php simple_unit.php --> unit_tester.php simple_web.php --> web_tester.php 2) The observer pattern is on the way out... $test = &new MyTestCase(); $test->attachObserver(new TestHtmlDisplay()); $test->run(); ...should be replaced with... $test = &new MyTestCase(); $test->run(new HtmlReporter()); 3) The basic HTML display class is now called HtmlReporter. 4) When setting options you now have to use the common class SimpleTestOptions... GroupTest::ignore --> SimpleTestOptions::ignore() Mock::setMockBaseClass() --> SimpleTestOptions::setMockBaseclass() Sorry about all the hassle this will cause, but I figure it was better to get it over with. Both interfaces are supported in Alpha8 and this acts as an interim release until Beta1. The rest of the release is just small improvements: Error trapping and testing, page redirects and extra mock object expectations. yours, Marcus. -- Marcus Baker, ma...@la..., no...@ap... |