Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 6, 2023
1 parent 78a4610 commit 9f1915d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Transport/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ public function request($url, $headers = [], $data = [], $options = []) {
curl_setopt($this->handle, CURLOPT_HEADERFUNCTION, null);
curl_setopt($this->handle, CURLOPT_WRITEFUNCTION, null);
}

Check failure on line 245 in src/Transport/Curl.php

View workflow job for this annotation

GitHub Actions / PHPCS

No blank line found after control structure
curl_close($this->handle);
}

return $this->headers;
Expand Down
6 changes: 6 additions & 0 deletions tests/Transport/Curl/CurlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ public function testCurlHandlerGetsClosedWhenThereAreNoErrors() {

$this->assertSame(200, $response->status_code);

var_dump(xdebug_debug_zval('transport'),

Check warning on line 160 in tests/Transport/Curl/CurlTest.php

View workflow job for this annotation

GitHub Actions / PHPCS

var_dump() found. Debug code should not normally be used in production.

Check failure on line 160 in tests/Transport/Curl/CurlTest.php

View workflow job for this annotation

GitHub Actions / PHPCS

Opening parenthesis of a multi-line function call must be the last content on the line
xdebug_debug_zval('options'));

Check failure on line 161 in tests/Transport/Curl/CurlTest.php

View workflow job for this annotation

GitHub Actions / PHPCS

Closing parenthesis of a multi-line function call must be on a line by itself
unset($transport, $options);

$this->assertNull($weakref->get());
}

Expand All @@ -177,7 +180,10 @@ public function testCurlHandlerGetsClosedEvenWhenThereAreErrors() {
$response = Requests::post('http://localhost:43992', [], [], $options);
} catch(Exception $e) {}

Check failure on line 181 in tests/Transport/Curl/CurlTest.php

View workflow job for this annotation

GitHub Actions / PHPCS

Expected 1 space(s) after CATCH keyword; 0 found

Check failure on line 181 in tests/Transport/Curl/CurlTest.php

View workflow job for this annotation

GitHub Actions / PHPCS

Empty CATCH statement detected

Check failure on line 181 in tests/Transport/Curl/CurlTest.php

View workflow job for this annotation

GitHub Actions / PHPCS

Newline required after opening brace

var_dump(xdebug_debug_zval('transport'),

Check warning on line 183 in tests/Transport/Curl/CurlTest.php

View workflow job for this annotation

GitHub Actions / PHPCS

var_dump() found. Debug code should not normally be used in production.

Check failure on line 183 in tests/Transport/Curl/CurlTest.php

View workflow job for this annotation

GitHub Actions / PHPCS

Opening parenthesis of a multi-line function call must be the last content on the line
xdebug_debug_zval('options'));
unset($transport, $options);

$this->assertNull($weakref->get());
}
}

0 comments on commit 9f1915d

Please sign in to comment.