Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jul 18, 2024
1 parent 89eafc3 commit 9e0eeaf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/StreamWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class StreamWrapperTest extends TestCase
{
public function testResource(): void
{
$stream = Psr7\Utils::streamFor('foo');
$stream = Utils::streamFor('foo');
$handle = StreamWrapper::getResource($stream);
self::assertSame('foo', fread($handle, 3));
self::assertSame(3, ftell($handle));
Expand Down Expand Up @@ -64,16 +64,16 @@ public function testResource(): void

public function testStreamContext(): void
{
$stream = Psr7\Utils::streamFor('foo');
$stream = Utils::streamFor('foo');

self::assertSame('foo', file_get_contents('guzzle://stream', false, StreamWrapper::createStreamContext($stream)));
}

public function testStreamCast(): void
{
$streams = [
StreamWrapper::getResource(Psr7\Utils::streamFor('foo')),
StreamWrapper::getResource(Psr7\Utils::streamFor('bar')),
StreamWrapper::getResource(Utils::streamFor('foo')),
StreamWrapper::getResource(Utils::streamFor('bar')),
];
$write = null;
$except = null;
Expand Down Expand Up @@ -158,7 +158,7 @@ public function testUrlStat(): void
*/
public function testXmlReaderWithStream(): void
{
$stream = Psr7\Utils::streamFor('<?xml version="1.0" encoding="utf-8"?><foo />');
$stream = Utils::streamFor('<?xml version="1.0" encoding="utf-8"?><foo />');

StreamWrapper::register();
libxml_set_streams_context(StreamWrapper::createStreamContext($stream));
Expand All @@ -174,7 +174,7 @@ public function testXmlReaderWithStream(): void
*/
public function testXmlWriterWithStream(): void
{
$stream = Psr7\Utils::streamFor(fopen('php://memory', 'wb'));
$stream = Utils::streamFor(fopen('php://memory', 'wb'));

StreamWrapper::register();
libxml_set_streams_context(StreamWrapper::createStreamContext($stream));
Expand Down

0 comments on commit 9e0eeaf

Please sign in to comment.