Skip to content

Commit

Permalink
Merge de9878a into dd7bf62
Browse files Browse the repository at this point in the history
  • Loading branch information
nbayramberdiyev committed Feb 28, 2022
2 parents dd7bf62 + de9878a commit ffe7352
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/RequestTest.php
Expand Up @@ -190,7 +190,7 @@ public function testWithUriPreservesHost()
// When `$preserveHost` is set to `true`, this method interacts with
// the Host header in the following ways:

// - If the the Host header is missing or empty, and the new URI contains
// - If the Host header is missing or empty, and the new URI contains
// a host component, this method MUST update the Host header in the returned
// request.
$uri1 = (new UriFactory())->createUri('');
Expand Down
4 changes: 2 additions & 2 deletions tests/ResponseTest.php
Expand Up @@ -121,7 +121,7 @@ public function testWithStatusEmptyReasonPhrase()
$this->assertEquals('', $responseWithNoMessage->getReasonPhrase());
}

public function testResonPhraseContainsCarriageReturn()
public function testReasonPhraseContainsCarriageReturn()
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Reason phrase contains one of the following prohibited characters: \r \n');
Expand All @@ -130,7 +130,7 @@ public function testResonPhraseContainsCarriageReturn()
$response = $response->withStatus(404, "Not Found\r");
}

public function testResonPhraseContainsLineFeed()
public function testReasonPhraseContainsLineFeed()
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage('Reason phrase contains one of the following prohibited characters: \r \n');
Expand Down
7 changes: 1 addition & 6 deletions tests/UploadedFileTest.php
Expand Up @@ -12,7 +12,6 @@

use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
use PHPUnit\Runner\Version;
use Prophecy\PhpUnit\ProphecyTrait;
use Psr\Http\Message\StreamInterface;
use Psr\Http\Message\UploadedFileInterface;
Expand Down Expand Up @@ -349,11 +348,7 @@ public function testMoveToStream()
$movedFileContents = ob_get_clean();

$this->assertEquals($contents, $movedFileContents);
if (version_compare(Version::series(), '9.1', '>=')) {
$this->assertFileDoesNotExist($fileName);
} else {
$this->assertFileNotExists($fileName);
}
$this->assertFileDoesNotExist($fileName);
}

public function testMoveToStreamCopyFailure()
Expand Down

0 comments on commit ffe7352

Please sign in to comment.