Skip to content

Commit

Permalink
Drop dumping of HTTP body, add ENV handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgruner committed Jun 23, 2023
1 parent 67a9844 commit bf326f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/HTTPClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ public function request(string $method, $uri = '', array $options = [] ): Respon
throw $e;
}

var_dump($response->getBody()->getContents());

return $response;
}
}
3 changes: 1 addition & 2 deletions test/ZammadAPIClient/Resource/AbstractBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public static function setUpBeforeClass(): void
$client_config = [
# Set a high timeout for tests to work with slow CI.
'timeout' => 30,
# TODO: configure via ENV?
'debug' => true,
'debug' => getenv('ZAMMAD_PHP_API_CLIENT_UNIT_TESTS_DEBUG'),
];

$env_keys = [
Expand Down

0 comments on commit bf326f6

Please sign in to comment.