Update copyright date for 2020
[civicrm-core.git] / tests / phpunit / E2E / Cache / FastArrayDecoratorTest.php
CommitLineData
62ea328c
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 5 |
5 +--------------------------------------------------------------------+
f299f7db 6 | Copyright CiviCRM LLC (c) 2004-2020 |
62ea328c
TO
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License along with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 */
26
27/**
28 * Verify that CRM_Utils_Cache_FastArrayDecorator complies with PSR-16.
29 *
30 * @group e2e
31 */
32class E2E_Cache_FastArrayDecoratorTest extends E2E_Cache_ArrayDecoratorTest {
33
34 /**
35 * @var CRM_Utils_Cache_Interface
36 */
37 protected $a;
38
39 public function createSimpleCache() {
40 return new CRM_Utils_Cache_FastArrayDecorator(
41 $this->a = CRM_Utils_Cache::create([
42 'name' => 'e2e fast-arr-dec test',
43 'type' => ['ArrayCache'],
44 ])
45 );
46 }
47
48 public function testSetTtl() {
49 $this->markTestSkipped('FastArrayDecorator breaks convention: Does not track TTL locally. However, TTL is passed along to delegate.');
50 }
51
52 public function testSetMultipleTtl() {
53 $this->markTestSkipped('FastArrayDecorator breaks convention: Does not track TTL locally. However, TTL is passed along to delegate.');
54 }
55
56 public function testDoubleLifeWithDelete() {
57 $this->markTestSkipped('FastArrayDecorator breaks convention: Does not track TTL locally. However, TTL is passed along to delegate.');
58 }
59
60 public function testDoubleLifeWithClear() {
61 $this->markTestSkipped('FastArrayDecorator breaks convention: Does not track TTL locally. However, TTL is passed along to delegate.');
62 }
63
64 public function testObjectDoesNotChangeInCache() {
65 $this->markTestSkipped('FastArrayDecorator breaks convention: No deep-copying cache content');
66 }
67
68}