From 68edd0f3eabb1e66869b113b7b8c4d31de8e3c54 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 19 Sep 2019 08:25:56 +0100 Subject: [PATCH] dev --- src/Listener.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ src/Poster.php | 4 +++- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 src/Listener.php diff --git a/src/Listener.php b/src/Listener.php new file mode 100644 index 0000000..3ec7c27 --- /dev/null +++ b/src/Listener.php @@ -0,0 +1,54 @@ +getName()); + } + + public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) + { + printf("Test '%s' failed.\n", $test->getName()); + } + + public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time) + { + printf("Test '%s' is incomplete.\n", $test->getName()); + } + + public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time) + { + printf("Test '%s' is deemed risky.\n", $test->getName()); + } + + public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) + { + printf("Test '%s' has been skipped.\n", $test->getName()); + } + + public function startTest(PHPUnit_Framework_Test $test) + { + printf("Test '%s' started.\n", $test->getName()); + } + + public function endTest(PHPUnit_Framework_Test $test, $time) + { + printf("Test '%s' ended.\n", $test->getName()); + } + + public function startTestSuite(PHPUnit_Framework_TestSuite $suite) + { + printf("TestSuite '%s' started.\n", $suite->getName()); + } + + public function endTestSuite(PHPUnit_Framework_TestSuite $suite) + { + printf("TestSuite '%s' ended.\n", $suite->getName()); + } +} + diff --git a/src/Poster.php b/src/Poster.php index 42e5af0..890d472 100644 --- a/src/Poster.php +++ b/src/Poster.php @@ -1,6 +1,8 @@ getRepo($repoUser, $repo); //create a test issue