Skip to content

Commit

Permalink
Remove PHPCS warning
Browse files Browse the repository at this point in the history
  • Loading branch information
chadicus committed Oct 1, 2017
1 parent 0eaf3fa commit 0940591
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions tests/RequestBridgeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,10 @@ final class RequestBridgeTest extends \PHPUnit_Framework_TestCase
public function toOAuth2()
{
$uri = 'https://example.com/foo/bar';

$headers = [
'Host' => ['example.com'],
'Accept' => ['application/json', 'text/json'],
];

$cookies = [
'PHPSESSID' => uniqid(),
];

$server = [
'SCRIPT_NAME' => __FILE__,
'SCRIPT_FILENAME' => __FILE__,
];

$json = json_encode(
[
'foo' => 'bar',
'abc' => '123',
]
);
$headers = ['Host' => ['example.com'], 'Accept' => ['application/json', 'text/json']];
$cookies = ['PHPSESSID' => uniqid()];
$server = ['SCRIPT_NAME' => __FILE__, 'SCRIPT_FILENAME' => __FILE__];
$json = json_encode(['foo' => 'bar', 'abc' => '123']);

$stream = fopen('php://memory', 'r+');
fwrite($stream, $json);
Expand Down

0 comments on commit 0940591

Please sign in to comment.