Skip to content

Commit 8b4f66a

Browse files
committed
Fixed formatting in test files
1 parent 84607f2 commit 8b4f66a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/StreamTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testInstantiateWithStreamName()
4545

4646
public function testInstantiateWithStreamResource()
4747
{
48-
$this->assertInstanceOf(StreamInterface::class, (new Stream(fopen('php://input', 'r+b'))));
48+
$this->assertInstanceOf(StreamInterface::class, new Stream(fopen('php://input', 'r+b')));
4949
}
5050

5151
public function testNonResourceConstructorArgument_ThrowsException()

tests/UriTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ public function testDefaultSchemePortLogic()
126126

127127
$uri = $this->uri('http:foo.bar:500');
128128
$this->assertNull($uri->getPort(), 'This is relative path with scheme - port not specified');
129-
$uri = $uri->withPort(443); //SET Port
129+
$uri = $uri->withPort(443);
130130
$this->assertSame(443, $uri->getPort(), 'No host was given but port was set with modifier');
131131
$this->assertNull($this->uri((string) $uri)->getPort(), 'Without host port will not be part of uri string even if specified');
132-
$uri = $uri->withHost('example.com'); //SET Host
132+
$uri = $uri->withHost('example.com');
133133
$this->assertSame(443, $this->uri((string) $uri)->getPort(), 'Port included in uri string when host became present');
134134
$this->assertNull($this->uri((string) $uri->withScheme('https'))->getPort(), 'Changed scheme match its default port - not present in uri string');
135135
}
@@ -154,8 +154,8 @@ public function testBasicSegmentsConcatenationLogic()
154154
$this->assertSame('?foo=bar&baz=qux#foo', (string) $uri->withScheme('')->withHost('')->withPath(''));
155155
$this->assertSame('#foo', (string) $uri->withScheme('')->withHost('')->withPath('')->withQuery(''));
156156

157-
//Invalid links, but valid URIs
158-
//Browsers would ignore 'http' scheme (but not https) and resolve these into valid relative links
157+
// Invalid links, but valid URIs
158+
// Browsers would ignore 'http' scheme (but not https) and resolve these into valid relative links
159159
$this->assertSame('https:/foo/bar?foo=bar&baz=qux#foo', (string) $uri->withUserInfo('')->withHost(''));
160160
$this->assertSame('https:/foo/bar?foo=bar&baz=qux#foo', (string) $uri->withHost(''));
161161
$this->assertSame('https:#foo', (string) $uri->withHost('')->withPath('')->withQuery(''));
@@ -316,7 +316,7 @@ public function testEncodedStringParametersAreNotDoubleEncoded()
316316
$this->assertSame('fo%C3%B3%20bar.baz', $uri->withHost('foó%20bar.baz')->getHost());
317317
$this->assertSame('%E2%9E%A1/foo%20bar', $uri->withPath('%E2%9E%A1/foo bar')->getPath());
318318
$this->assertSame('%E2%9E%A1=foo%20bar&%E4%BE%8B%E5%AD%90=%E6%B5%8B%E8%AF%95', $uri->withQuery('%E2%9E%A1=foo%20bar&%E4%BE%8B%E5%AD%90=测试')->getQuery());
319-
$this->assertSame('%D9%85%D8%AB%D8%A7%D9%84', $uri->withFragment('مثا%D9%84')->getFragment()); //Right-to-left-literals
319+
$this->assertSame('%D9%85%D8%AB%D8%A7%D9%84', $uri->withFragment('مثا%D9%84')->getFragment()); // Right-to-left-literals
320320
}
321321

322322
public function testEncodedNormalizedToUppercase()

0 commit comments

Comments
 (0)