Skip to content

Commit

Permalink
Remove leproxy testing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Sep 4, 2024
1 parent c00c3fb commit 8df9f86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@
"amphp/http-tunnel": "^2",
"amphp/php-cs-fixer-config": "^2",
"amphp/phpunit-util": "^3",
"leproxy/leproxy": "^0.2.2",
"phpunit/phpunit": "^9",
"psalm/phar": "^5",
"revolt/event-loop-adapter-react": "^1.1"
"psalm/phar": "^5"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 2 additions & 3 deletions test/GuzzleHandlerAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
use GuzzleHttp\Promise\PromiseInterface;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RedirectMiddleware;
use GuzzleHttp\RequestOptions;
use LeProxy\LeProxy\LeProxyServer;
use React\EventLoop\Loop;
use function Amp\async;
use function Amp\delay;

Expand All @@ -40,6 +37,7 @@ public function testRequestDelay(): void
$this->assertTrue(\microtime(true)-$t < 1);
}

/* leproxy/leproxy is out of date and was preventing upgraing psr/http-message, so skipping this for now.
public function testRequestProxies(): void
{
$proxy = new LeProxyServer(Loop::get());
Expand All @@ -55,6 +53,7 @@ public function testRequestProxies(): void
$this->assertStringContainsString('Example Domain', (string) $result->getBody());
}
}
*/

public function testRequestDelayGuzzleAsync(): void
{
Expand Down

0 comments on commit 8df9f86

Please sign in to comment.