‪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 
23 {
24  protected string ‪$identifier;
25 
26  public function ‪__construct(‪$identifier)
27  {
28  $this->identifier = ‪$identifier;
29  }
30 
31  public function ‪getIdentifier(): string
32  {
33  return ‪$this->identifier;
34  }
35 
36  public function ‪getBackend(): never
37  {
38  // This method is only there to implement the interface and must not be called.
39  throw new \RuntimeException('testing', 1668942244);
40  }
41 
42  public function set($entryIdentifier, $data, array $tags = [], $lifetime = null): void {}
43 
44  public function get($entryIdentifier) {}
45 
46  public function ‪has($entryIdentifier)
47  {
48  return false;
49  }
50 
51  public function remove($entryIdentifier)
52  {
53  return false;
54  }
55 
56  public function ‪flush(): void {}
57 
58  public function ‪flushByTag($tag): void {}
59 
60  public function ‪flushByTags(array $tags): void {}
61 
62  public function ‪collectGarbage(): void {}
63 
65  {
66  return true;
67  }
68 
69  public function ‪isValidTag($tag)
70  {
71  return true;
72  }
73 }
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\isValidTag
‪isValidTag($tag)
Definition: FrontendFixture.php:69
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture
Definition: FrontendFixture.php:23
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\__construct
‪__construct($identifier)
Definition: FrontendFixture.php:26
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\has
‪has($entryIdentifier)
Definition: FrontendFixture.php:46
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\getBackend
‪getBackend()
Definition: FrontendFixture.php:36
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\$identifier
‪string $identifier
Definition: FrontendFixture.php:24
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\getIdentifier
‪getIdentifier()
Definition: FrontendFixture.php:31
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\flushByTag
‪flushByTag($tag)
Definition: FrontendFixture.php:58
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures
Definition: BackendConfigurationOptionFixture.php:18
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\flush
‪flush()
Definition: FrontendFixture.php:56
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\collectGarbage
‪collectGarbage()
Definition: FrontendFixture.php:62
‪TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
Definition: FrontendInterface.php:22
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\isValidEntryIdentifier
‪isValidEntryIdentifier($identifier)
Definition: FrontendFixture.php:64
‪TYPO3\CMS\Core\Tests\Unit\Cache\Fixtures\FrontendFixture\flushByTags
‪flushByTags(array $tags)
Definition: FrontendFixture.php:60