Skip to content

Commit 3959a94

Browse files
committed
test: remove meaningless test
See #8069 (comment)
1 parent 4d5c35c commit 3959a94

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

tests/system/Test/TestCaseTest.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
use CodeIgniter\CLI\CLI;
1515
use CodeIgniter\Events\Events;
16-
use CodeIgniter\HTTP\Response;
17-
use Config\App;
1816
use Tests\Support\Test\TestForReflectionHelper;
1917

2018
/**
@@ -74,31 +72,6 @@ public function testStreamFilter(): void
7472
$this->assertSame($expected, $this->getStreamFilterBuffer());
7573
}
7674

77-
/**
78-
* PHPunit emits headers before we get nominal control of
79-
* the output stream, making header testing awkward, to say
80-
* the least. This test is intended to make sure that this
81-
* is happening as expected.
82-
*
83-
* TestCaseEmissionsTest is intended to circumvent PHPunit,
84-
* and allow us to test our own header emissions.
85-
*/
86-
public function testPHPUnitHeadersEmitted(): void
87-
{
88-
$response = new Response(new App());
89-
$response->pretend(true);
90-
91-
$body = 'Hello';
92-
$response->setBody($body);
93-
94-
ob_start();
95-
$response->send();
96-
ob_end_clean();
97-
98-
$this->assertHeaderEmitted('Content-type: text/html;');
99-
$this->assertHeaderNotEmitted('Set-Cookie: foo=bar;');
100-
}
101-
10275
public function testCloseEnough(): void
10376
{
10477
$this->assertCloseEnough(1, 1);

0 commit comments

Comments
 (0)