/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/ErrorHandler/Tests/HeaderMock.php
38 строк
679 B
Yonel Ceruto
Add a new ErrorHandler component (mirror of the Debug component)
18 июл 2019, 10:54
18 июл 2019, 10:54
b1b6e80
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\ErrorHandler; function headers_sent() { return false; } function header($str, $replace = true, $status = null) { Tests\testHeader($str, $replace, $status); } namespace Symfony\Component\ErrorHandler\Tests; function testHeader() { static $headers = []; if (!$h = \func_get_args()) { $h = $headers; $headers = []; return $h; } $headers[] = \func_get_args(); }