TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
AbstractBackendTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Core\Tests\Unit\Cache\Backend
;
3
24
class
AbstractBackendTest
extends
\TYPO3\CMS\Core\Tests\UnitTestCase
{
25
29
protected
$backend
;
30
34
public
function
setUp
() {
35
$className = $this->
getUniqueId
(
'ConcreteBackend_'
);
36
eval(
'
37
class '
. $className .
' extends TYPO3\\CMS\\Core\\Cache\\Backend\\AbstractBackend {
38
public function set($entryIdentifier, $data, array $tags = array(), $lifetime = NULL) {}
39
public function get($entryIdentifier) {}
40
public function has($entryIdentifier) {}
41
public function remove($entryIdentifier) {}
42
public function flush() {}
43
public function flushByTag($tag) {}
44
public function findIdentifiersByTag($tag) {}
45
public function collectGarbage() {}
46
public function setSomeOption($value) {
47
$this->someOption = $value;
48
}
49
public function getSomeOption() {
50
return $this->someOption;
51
}
52
}
53
'
);
54
$this->backend =
new
$className(
'Testing'
);
55
}
56
60
public
function
theConstructorCallsSetterMethodsForAllSpecifiedOptions
() {
61
$className = get_class($this->backend);
62
$backend
=
new
$className(
'Testing'
, array(
'someOption'
=>
'someValue'
));
63
$this->assertSame(
'someValue'
,
$backend
->getSomeOption());
64
}
65
66
}
TYPO3\CMS\Core\Tests\Unit\Cache\Backend\AbstractBackendTest\theConstructorCallsSetterMethodsForAllSpecifiedOptions
theConstructorCallsSetterMethodsForAllSpecifiedOptions()
Definition:
AbstractBackendTest.php:60
TYPO3\CMS\Core\Tests\Unit\Cache\Backend
Definition:
AbstractBackendTest.php:2
TYPO3\CMS\Core\Tests\Unit\Cache\Backend\AbstractBackendTest
Definition:
AbstractBackendTest.php:24
TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId
getUniqueId($prefix='')
Definition:
BaseTestCase.php:279
TYPO3\CMS\Core\Tests\Unit\Cache\Backend\AbstractBackendTest\setUp
setUp()
Definition:
AbstractBackendTest.php:34
TYPO3\CMS\Core\Tests\UnitTestCase
Definition:
UnitTestCase.php:26
TYPO3\CMS\Core\Tests\Unit\Cache\Backend\AbstractBackendTest\$backend
$backend
Definition:
AbstractBackendTest.php:29
typo3
sysext
core
Tests
Unit
Cache
Backend
AbstractBackendTest.php
Generated on Wed Aug 7 2019 09:52:23 for TYPO3 CMS by
1.8.13