Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit eb5100d

Browse files
committed
:octocat:
1 parent 4360692 commit eb5100d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/API/APITestAbstract.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
namespace chillerlan\OAuthTest\API;
1414

1515
use chillerlan\DotEnv\DotEnv;
16-
use chillerlan\HTTP\{CurlClient, HTTPOptionsTrait, Psr7};
16+
use chillerlan\HTTP\{CurlClient, Psr7};
1717
use chillerlan\Logger\{Log, LogOptionsTrait, Output\LogOutputAbstract};
18-
use chillerlan\OAuth\{OAuthOptionsTrait, Core\AccessToken, Core\OAuthInterface, Storage\MemoryStorage};
19-
use chillerlan\Settings\{SettingsContainerAbstract, SettingsContainerInterface};
18+
use chillerlan\OAuth\{OAuthOptions, Core\AccessToken, Core\OAuthInterface, Storage\MemoryStorage};
19+
use chillerlan\Settings\SettingsContainerInterface;
2020
use Http\Client\HttpClient;
2121
use PHPUnit\Framework\TestCase;
2222
use Psr\Http\Message\{RequestInterface, ResponseInterface};
@@ -84,8 +84,8 @@ protected function setUp(){
8484
'minLogLevel' => 'debug',
8585
];
8686

87-
$options = new class($options) extends SettingsContainerAbstract{
88-
use OAuthOptionsTrait, HTTPOptionsTrait, LogOptionsTrait;
87+
$options = new class($options) extends OAuthOptions{
88+
use LogOptionsTrait;
8989
protected $sleep;
9090
};
9191

@@ -114,7 +114,7 @@ protected function initLog($options):LoggerInterface{
114114
new class($options) extends LogOutputAbstract{
115115

116116
protected function __log(string $level, string $message, array $context = null):void{
117-
echo $message;//.PHP_EOL.print_r($context, true).PHP_EOL;
117+
echo PHP_EOL.$message.PHP_EOL.print_r($context, true).PHP_EOL;
118118
}
119119

120120
},
@@ -147,7 +147,7 @@ public function sendRequest(RequestInterface $request):ResponseInterface{
147147

148148
$response = $this->client->sendRequest($request);
149149

150-
$this->logger->debug("\n-----REQUEST-----\n".Psr7\message_to_string($request));
150+
$this->logger->debug("\n-----REQUEST------\n".Psr7\message_to_string($request));
151151
$this->logger->debug("\n-----RESPONSE-----\n".Psr7\message_to_string($response));
152152

153153
$response->getBody()->rewind();

0 commit comments

Comments
 (0)