‪TYPO3CMS  10.4
GeneralUtilityFixture.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
19 
24 {
28  public static ‪$isAllowedHostHeaderValueCallCount = 0;
29 
36  public static function ‪isAllowedHostHeaderValue($hostHeaderValue)
37  {
38  self::$isAllowedHostHeaderValueCallCount++;
39  return parent::isAllowedHostHeaderValue($hostHeaderValue);
40  }
41 
46  {
47  static::$allowHostHeaderValue = ‪$allowHostHeaderValue;
48  }
49 
55  protected static function ‪isInternalRequestType()
56  {
57  return false;
58  }
59 
63  public static function ‪resetFinalClassNameCache()
64  {
65  static::$finalClassNameCache = [];
66  }
67 }
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFixture\resetFinalClassNameCache
‪static resetFinalClassNameCache()
Definition: GeneralUtilityFixture.php:62
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFixture
Definition: GeneralUtilityFixture.php:24
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFixture\isAllowedHostHeaderValue
‪static bool isAllowedHostHeaderValue($hostHeaderValue)
Definition: GeneralUtilityFixture.php:35
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFixture\setAllowHostHeaderValue
‪static setAllowHostHeaderValue($allowHostHeaderValue)
Definition: GeneralUtilityFixture.php:44
‪TYPO3\CMS\Core\Utility\GeneralUtility\$allowHostHeaderValue
‪static bool $allowHostHeaderValue
Definition: GeneralUtility.php:55
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFixture\$isAllowedHostHeaderValueCallCount
‪static int $isAllowedHostHeaderValueCallCount
Definition: GeneralUtilityFixture.php:27
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures\GeneralUtilityFixture\isInternalRequestType
‪static bool isInternalRequestType()
Definition: GeneralUtilityFixture.php:54
‪TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures
Definition: ArrayUtilityFilterRecursiveCallbackFixture.php:18
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46