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

Commit c7fd621

Browse files
committed
🚿
1 parent fec16b7 commit c7fd621

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@
2828
"psr/simple-cache": "^1.0"
2929
},
3030
"require-dev": {
31-
"chillerlan/php-curl": "^1.0",
3231
"chillerlan/php-database": "^2.0",
3332
"chillerlan/php-log": "^1.0",
34-
"phpunit/phpunit": "^7.1"
33+
"phpunit/phpunit": "^7.2"
3534
},
3635
"autoload": {
3736
"psr-4": {

examples/oauth-example-common.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@
1111
Database, DatabaseOptionsTrait, Drivers\MySQLiDrv
1212
};
1313
use chillerlan\HTTP\{
14-
HTTPClientAbstract, HTTPResponseInterface, TinyCurlClient
14+
HTTPClientAbstract, HTTPResponseInterface, CurlClient
1515
};
1616
use chillerlan\Logger\{
1717
Log, LogOptionsTrait, Output\ConsoleLog
1818
};
1919
use chillerlan\OAuth\{
2020
OAuthOptions, Storage\SessionStorage
2121
};
22-
use chillerlan\TinyCurl\Request;
2322
use chillerlan\Traits\{
2423
ContainerInterface, DotEnv
2524
};
@@ -78,7 +77,7 @@
7877

7978
public function __construct(ContainerInterface $options){
8079
parent::__construct($options);
81-
$this->client = new TinyCurlClient($this->options, new Request($this->options));
80+
$this->client = new CurlClient($this->options);
8281
}
8382

8483
protected function getResponse():HTTPResponseInterface{

phpunit.xml

-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
<testsuites>
1616
<testsuite name="php-oauth-core test suite">
1717
<directory suffix=".php">./tests</directory>
18-
<!--
19-
<exclude>./tests/API</exclude>
20-
<exclude>./tests/Providers</exclude>
21-
-->
2218
</testsuite>
2319
</testsuites>
2420
<filter>

tests/Core/APITestAbstract.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313
namespace chillerlan\OAuthTest\Core;
1414

1515
use chillerlan\HTTP\{
16-
HTTPClientAbstract, HTTPClientInterface, HTTPResponseInterface, TinyCurlClient
16+
HTTPClientAbstract, HTTPClientInterface, HTTPResponseInterface, CurlClient
1717
};
1818
use chillerlan\OAuth\{
1919
Core\AccessToken, Core\OAuthInterface, OAuthOptions, Storage\MemoryStorage, Storage\OAuthStorageInterface
2020
};
2121
use chillerlan\OAuthTest\OAuthTestAbstract;
22-
use chillerlan\TinyCurl\Request;
2322
use chillerlan\Traits\ContainerInterface;
2423
use Psr\Log\LoggerInterface;
2524

@@ -117,7 +116,7 @@ protected function initHttp(ContainerInterface $options):HTTPClientInterface{
117116

118117
public function __construct(ContainerInterface $options){
119118
parent::__construct($options);
120-
$this->client = new TinyCurlClient($this->options, new Request($this->options));
119+
$this->client = new CurlClient($this->options);
121120
}
122121

123122
protected function getResponse():HTTPResponseInterface{

0 commit comments

Comments
 (0)