Skip to content

Commit 95fffc0

Browse files
committed
test: remove redundant test/assertion in ResponseTest
Remove testSetHeadersWithSingleCharacterValues as it is redundant - the same code paths are already tested by testFromPsr7 (which also calls setHeaders with a single header) and testSetHeadersWithMultipleHeaders.
1 parent f154938 commit 95fffc0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/src/Unit/ResponseTest.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,4 @@ public function testSetHeadersWithEmptyArray(): void
8686
$response->setHeaders([]);
8787
$this->assertSame(2, $response->getHeadersSize());
8888
}
89-
90-
public function testSetHeadersWithSingleCharacterValues(): void
91-
{
92-
$response = new \Deviantintegral\Har\Response();
93-
94-
// Test with minimal header to ensure each +2 is necessary
95-
// "X: Y" = 1 + 2 + 1 + 2 = 6, plus final 2 = 8
96-
$headers = [(new Header())->setName('X')->setValue('Y')];
97-
$response->setHeaders($headers);
98-
$this->assertSame(8, $response->getHeadersSize());
99-
}
10089
}

0 commit comments

Comments
 (0)