‪TYPO3CMS  ‪main
FrontendFixture.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
26 {
27  protected string ‪$identifier;
28 
29  public function ‪__construct(‪$identifier)
30  {
31  $this->identifier = ‪$identifier;
32  }
33 
34  public function ‪getIdentifier(): string
35  {
36  return ‪$this->identifier;
37  }
38 
39  public function ‪getBackend(): never
40  {
41  // This method is only there to implement the interface and must not be called.
42  throw new \RuntimeException('testing', 1668942244);
43  }
44 
45  public function set($entryIdentifier, $data, array $tags = [], $lifetime = null): void {}
46 
47  public function get($entryIdentifier) {}
48 
49  public function ‪has($entryIdentifier)
50  {
51  return false;
52  }
53 
54  public function remove($entryIdentifier)
55  {
56  return false;
57  }
58 
59  public function ‪flush(): void {}
60 
61  public function ‪flushByTag($tag): void {}
62 
63  public function ‪flushByTags(array $tags): void {}
64 
65  public function ‪collectGarbage(): void {}
66 
68  {
69  return true;
70  }
71 
72  public function ‪isValidTag($tag)
73  {
74  return true;
75  }
76 }
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\isValidTag
‪isValidTag($tag)
Definition: FrontendFixture.php:72
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture
Definition: FrontendFixture.php:26
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\__construct
‪__construct($identifier)
Definition: FrontendFixture.php:29
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\has
‪has($entryIdentifier)
Definition: FrontendFixture.php:49
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\getBackend
‪getBackend()
Definition: FrontendFixture.php:39
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\$identifier
‪string $identifier
Definition: FrontendFixture.php:27
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\getIdentifier
‪getIdentifier()
Definition: FrontendFixture.php:34
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\flushByTag
‪flushByTag($tag)
Definition: FrontendFixture.php:61
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures
Definition: BackendConfigurationOptionFixture.php:18
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\flush
‪flush()
Definition: FrontendFixture.php:59
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\collectGarbage
‪collectGarbage()
Definition: FrontendFixture.php:65
‪TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
Definition: FrontendInterface.php:22
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\isValidEntryIdentifier
‪isValidEntryIdentifier($identifier)
Definition: FrontendFixture.php:67
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\flushByTags
‪flushByTags(array $tags)
Definition: FrontendFixture.php:63