Skip to content

Commit

Permalink
Fix coding standards issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Nov 2, 2020
1 parent aa9d42f commit 3e508cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/RelativeStreamTest.php
Expand Up @@ -25,7 +25,7 @@
class RelativeStreamTest extends TestCase
{
use ProphecyTrait;

public function testToString()
{
$decorated = $this->prophesize(Stream::class);
Expand Down
11 changes: 7 additions & 4 deletions test/UriTest.php
Expand Up @@ -469,18 +469,18 @@ public function testMutationResetsUriStringPropertyInClone($method, $value)
{
$uri = new Uri('http://example.com/path?query=string#fragment');
$string = (string) $uri;

$r = new ReflectionObject($uri);
$p = $r->getProperty('uriString');
$p->setAccessible(true);
$this->assertSame($string, $p->getValue($uri));

$test = $uri->{$method}($value);
$r2 = new ReflectionObject($uri);
$p2 = $r2->getProperty('uriString');
$p2->setAccessible(true);
$this->assertNull($p2->getValue($test));

$this->assertSame($string, $p->getValue($uri));
}

Expand Down Expand Up @@ -672,7 +672,10 @@ public function testReservedCharsInPathUnencoded()
->withHost('api.linkedin.com')
->withPath('/v1/people/~:(first-name,last-name,email-address,picture-url)');

$this->assertStringContainsString('/v1/people/~:(first-name,last-name,email-address,picture-url)', (string) $uri);
$this->assertStringContainsString(
'/v1/people/~:(first-name,last-name,email-address,picture-url)',
(string) $uri
);
}

public function testHostIsLowercase()
Expand Down

0 comments on commit 3e508cf

Please sign in to comment.