Skip to content

Commit

Permalink
Remove data file
Browse files Browse the repository at this point in the history
  • Loading branch information
chadicus committed Nov 22, 2017
1 parent e539559 commit 3fb0f07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/RequestBridgeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ public function toOAuth2BodyContentsOfRequestPreserved()
{
$uri = 'https://example.com/foos';

$psr7Request = new ServerRequest([], [], $uri, 'POST', fopen(__DIR__ . '/_data/foo', 'r'));
$temp = tmpfile();
fwrite($temp, 'foo');
rewind($temp);

$psr7Request = new ServerRequest([], [], $uri, 'POST', $temp);

$oauth2Request = RequestBridge::toOAuth2($psr7Request);

Expand Down
1 change: 0 additions & 1 deletion tests/_data/foo

This file was deleted.

0 comments on commit 3fb0f07

Please sign in to comment.