Create a new interface unittest.Listener (without the Test prefix) with the new method. Clients can now > implement both, and based on type existance, pass the correct one
index b1802ef..92ec6af 100755
--- a/src/main/php/unittest/TestListener.class.php
+++ b/src/main/php/unittest/TestListener.class.php
@@ -4,6 +4,7 @@
* To intercept certain events during a test run, add a listener to
* the test suite before calling its run() or runTest() methods.
*
+ * @deprecated Use Listener instead!
* @test xp://net.xp_framework.unittest.tests.ListenerTest
* @see xp://unittest.TestSuite#addListener
*/
@@ -12,35 +13,35 @@ interface TestListener {
/**
* Called when a test case starts.
*
- * @param unittest.TestCase failure
+ * @param unittest.TestCase $test
*/
- public function testStarted(TestCase $case);
+ public function testStarted(TestCase $test);
See https://github.com/xp-framework/unittest/pull/37#issuecomment-537023414: