Skip to content

Commit

Permalink
Update docblock in PhpFunctionOverrides
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Mar 2, 2019
1 parent af67840 commit f735bb6
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions tests/Assets/PhpFunctionOverrides.php
@@ -1,35 +1,16 @@
<?php
/**
* This is a direct copy of zend-diactoros/test/TestAsset/Functions.php and is used to override
* header() and headers_sent() so we can test that they do the right thing.
* Override PHP namespaced functions into the Slim\App namespace.
*
* header() and headers_sent() are from Zend-Diactoros zend-diactoros/test/TestAsset/Functions.php and are
* Copyright (c) 2015-2016 Zend Technologies USA Inc. (http://www.zend.com) and are licensed under the New BSD License
* at https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md.
*
* We put these into the Slim namespace, so that Slim\App will use these versions of header() and
* headers_sent() when we test its output.
*/
namespace Slim;

use Slim\Tests\Assets\HeaderStack;

/**
* Zend Framework (http://framework.zend.com/)
*
* This file exists to allow overriding the various output-related functions
* in order to test what happens during the `Server::listen()` cycle.
*
* These functions include:
*
* - headers_sent(): we want to always return false so that headers will be
* emitted, and we can test to see their values.
* - header(): we want to aggregate calls to this function.
*
* The HeaderStack class then aggregates that information for us, and the test
* harness resets the values pre and post test.
*
* @see http://github.com/zendframework/zend-diactoros for the canonical source repository
* @copyright Copyright (c) 2015-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md New BSD License
*/

/**
* Have headers been sent?
*
Expand Down

0 comments on commit f735bb6

Please sign in to comment.