From 5fa6b2110039670b2cd0504b95d54a79b272a299 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 8 Mar 2015 15:14:27 +0100 Subject: test: Fail on exceptions If we don't output a test plan prove will consider the test failed. The destructor would run when an uncaught exception is thrown so don't use a destructor to output the testplan. Signed-off-by: Florian Pritz --- application/tests/Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/tests') diff --git a/application/tests/Test.php b/application/tests/Test.php index e18aa9374..1f2e4fefa 100644 --- a/application/tests/Test.php +++ b/application/tests/Test.php @@ -102,7 +102,7 @@ abstract class Test { { } - public function __destruct() + public function done_testing() { $this->t->done_testing(); } -- cgit v1.2.3-24-g4f1b