You are here

function testHeader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/debug/Tests/HeaderMock.php \Symfony\Component\Debug\testHeader()
4 calls to testHeader()
ExceptionHandlerTest::setUp in vendor/symfony/debug/Tests/ExceptionHandlerTest.php
ExceptionHandlerTest::tearDown in vendor/symfony/debug/Tests/ExceptionHandlerTest.php
ExceptionHandlerTest::testHeaders in vendor/symfony/debug/Tests/ExceptionHandlerTest.php
ExceptionHandlerTest::testStatusCode in vendor/symfony/debug/Tests/ExceptionHandlerTest.php

File

vendor/symfony/debug/Tests/HeaderMock.php, line 26

Namespace

Symfony\Component\Debug

Code

function testHeader() {
  static $headers = array();
  if (!($h = func_get_args())) {
    $h = $headers;
    $headers = array();
    return $h;
  }
  $headers[] = func_get_args();
}