From 1936a74cb3affef4f439c695d7e3c9eacc5a9aae Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 26 Apr 2016 22:55:56 -0400 Subject: Update JsonRPC library --- tests/integration/Base.php | 6 +++--- tests/integration/MeTest.php | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/Base.php b/tests/integration/Base.php index 983d0ed9..6f3ae076 100644 --- a/tests/integration/Base.php +++ b/tests/integration/Base.php @@ -35,15 +35,15 @@ abstract class Base extends PHPUnit_Framework_TestCase { $this->app = new JsonRPC\Client(API_URL); $this->app->authentication('jsonrpc', API_KEY); - // $this->app->debug = true; + $this->app->getHttpClient()->withDebug(); $this->admin = new JsonRPC\Client(API_URL); $this->admin->authentication('admin', 'admin'); - // $this->admin->debug = true; + $this->admin->getHttpClient()->withDebug(); $this->user = new JsonRPC\Client(API_URL); $this->user->authentication('user', 'password'); - // $this->user->debug = true; + $this->user->getHttpClient()->withDebug(); } protected function getProjectId() diff --git a/tests/integration/MeTest.php b/tests/integration/MeTest.php index 21f61756..1b028b84 100644 --- a/tests/integration/MeTest.php +++ b/tests/integration/MeTest.php @@ -15,7 +15,7 @@ class MeTest extends Base } /** - * @expectedException JsonRPC\AccessDeniedException + * @expectedException JsonRPC\Exception\AccessDeniedException */ public function testNotAllowedAppProcedure() { @@ -23,7 +23,7 @@ class MeTest extends Base } /** - * @expectedException JsonRPC\AccessDeniedException + * @expectedException JsonRPC\Exception\AccessDeniedException */ public function testNotAllowedUserProcedure() { @@ -31,7 +31,7 @@ class MeTest extends Base } /** - * @expectedException JsonRPC\AccessDeniedException + * @expectedException JsonRPC\Exception\AccessDeniedException */ public function testNotAllowedProjectForUser() { @@ -140,7 +140,7 @@ class MeTest extends Base } /** - * @expectedException JsonRPC\AccessDeniedException + * @expectedException JsonRPC\Exception\AccessDeniedException */ public function testGetAdminTask() { @@ -148,7 +148,7 @@ class MeTest extends Base } /** - * @expectedException JsonRPC\AccessDeniedException + * @expectedException JsonRPC\Exception\AccessDeniedException */ public function testGetProjectActivityDenied() { -- cgit v1.2.3