Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit b4ea792

Browse files
committed
Fix coding style
1 parent b8d75b3 commit b4ea792

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/Client/CurlTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,17 +427,16 @@ public function testNoCaseSensitiveHeaderName()
427427

428428
public function testTimeoutDetection()
429429
{
430-
$uriToBigResource = getenv('TESTS_ZEND_HTTP_CLIENT_BIGRESOURCE_URI');
431-
if (!$uriToBigResource) {
432-
$uriToBigResource = 'http://de.releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-i386.iso';
433-
}
434430
$this->client
435431
->setOptions([
436432
'timeout' => 1,
437433
])
438434
->setStream(true)
439435
->setMethod('GET')
440-
->setUri($uriToBigResource);
436+
->setUri(
437+
getenv('TESTS_ZEND_HTTP_CLIENT_BIGRESOURCE_URI') ?:
438+
'http://de.releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-i386.iso'
439+
);
441440
$error = null;
442441
try {
443442
$this->client->send();

0 commit comments

Comments
 (0)