Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit e367b20

Browse files
committed
Removes two invalid tests
`MessageTraitTest` had two tests that were for behavior not supported by PSR-7: - `testHeaderExistsIfWithNoValues` - `testHeaderWithNoValues` As the integration tests demonstrate, these were not valid scenarios. As such, the tests are removed.
1 parent 62124e0 commit e367b20

File tree

2 files changed

+91
-51
lines changed

2 files changed

+91
-51
lines changed

composer.lock

Lines changed: 91 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/MessageTraitTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,6 @@ public function testAddHeaderAppendsToExistingHeader()
135135
$this->assertSame('Foo,Bar', $message2->getHeaderLine('X-Foo'));
136136
}
137137

138-
public function testHeaderExistsIfWithNoValues()
139-
{
140-
$message = $this->message->withHeader('X-Foo', []);
141-
142-
$this->assertTrue($message->hasHeader('X-Foo'));
143-
}
144-
145-
public function testHeaderWithNoValues()
146-
{
147-
$message = $this->message->withHeader('X-Foo', []);
148-
149-
$this->assertSame([], $message->getHeader('X-Foo'));
150-
$this->assertSame('', $message->getHeaderLine('X-Foo'));
151-
}
152-
153-
154138
public function testCanRemoveHeaders()
155139
{
156140
$message = $this->message->withHeader('X-Foo', 'Foo');

0 commit comments

Comments
 (0)