From 16038379331d63c45449bc26bcc5acd83b74ad47 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Mar 2018 15:03:03 +0100 Subject: [PATCH] Report error in phpunit --- test/phpunit/TicketsupTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/phpunit/TicketsupTest.php b/test/phpunit/TicketsupTest.php index 53170100d22..dc919f0a101 100644 --- a/test/phpunit/TicketsupTest.php +++ b/test/phpunit/TicketsupTest.php @@ -145,7 +145,7 @@ class TicketsupTest extends \PHPUnit_Framework_TestCase $result=$localobject->create($user); print __METHOD__." result=".$result."\n"; - $this->assertEquals($result, -1); + $this->assertEquals($result, -1, $localobject->error); // Try to create one with correct values $localobject=new \Ticketsup($this->savdb); @@ -153,7 +153,7 @@ class TicketsupTest extends \PHPUnit_Framework_TestCase $result=$localobject->create($user); print __METHOD__." result=".$result."\n"; - $this->assertLessThan($result, 0); + $this->assertLessThan($result, 0, $localobject->error); return $result;