Commit 662d6af0 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Drop an always skipped unit test

* Test relies on xdebug, which is not available on CI, this
  test is never executed there.
* Since the low level API header() is tested, the test
  additionally needs to fork a php process to do it's thing.
  This is ugly for a unit test.
* Turning the test into a functional test won't improve the
  situation since the response emitting is not done with
  functional sub requests.
* The skip logic breaks with xdebug 3.0 using xdebug.mode=off.

Resolves: #93598
Releases: master, 10.4, 9.5
Change-Id: Ibab9452bdcbc83228c1445db1a92b42db54dc192

Tested-by: default avatarTYPO3com <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
parent c4e71261
......@@ -57,7 +57,7 @@ class NodeVisitor extends NodeVisitorAbstract
// PHPDocumentor 2 tags
'api', 'author', 'category', 'copyright', 'deprecated', 'example', 'filesource', 'global', 'ignore', 'internal', 'license', 'link', 'method', 'package', 'param', 'property', 'property-read', 'property-write', 'return', 'see', 'since', 'source', 'subpackage', 'throws', 'todo', 'TODO', 'usedby', 'uses', 'var', 'version',
// PHPUnit tags
'codeCoverageIgnore', 'codeCoverageIgnoreStart', 'codeCoverageIgnoreEnd', 'test', 'covers', 'dataProvider', 'group', 'skip', 'depends', 'expectedException', 'before', 'requires', 'runInSeparateProcess',
'codeCoverageIgnore', 'codeCoverageIgnoreStart', 'codeCoverageIgnoreEnd', 'test', 'covers', 'dataProvider', 'group', 'skip', 'depends', 'expectedException', 'before', 'requires',
// codeception tags
// PHPCheckStyle
namespace TYPO3\CMS\Core\Tests\Unit\Http;
use Psr\Http\Message\ResponseInterface;
use TYPO3\CMS\Core\Http\AbstractApplication;
use TYPO3\CMS\Core\Http\Response;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
class AbstractApplicationTest extends UnitTestCase
* @runInSeparateProcess
public function testCookiesAreSentAsMultipleHeaders()
if (!extension_loaded('xdebug')) {
$this->markTestSkipped('This test can only be executed if xdebug is present.');
$application = new class extends AbstractApplication {
public function sendResponse(ResponseInterface $response)
$response = (new Response())
->withAddedHeader('Cache-Control', 'public')
->withAddedHeader('Cache-Control', 'max-age=3600')
->withAddedHeader('Set-Cookie', 'foo=bar')
->withAddedHeader('Set-Cookie', 'baz=foobar');
'Cache-Control: public, max-age=3600',
'Set-Cookie: foo=bar',
'Set-Cookie: baz=foobar',
], xdebug_get_headers());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment