1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace OPCache; |
4
|
|
|
use OPCache\OPCache; |
5
|
|
|
|
6
|
|
|
/** |
7
|
|
|
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2015-03-12 at 16:17:49. |
8
|
|
|
*/ |
9
|
|
|
class OPCacheTest extends \PHPUnit_Framework_TestCase |
10
|
|
|
{ |
11
|
|
|
|
12
|
|
|
protected $backupGlobals = FALSE; |
13
|
|
|
/** |
14
|
|
|
* @var OPCache |
15
|
|
|
*/ |
16
|
|
|
protected $object; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* Sets up the fixture, for example, opens a network connection. |
20
|
|
|
* This method is called before a test is executed. |
21
|
|
|
*/ |
22
|
|
|
protected function setUp() |
23
|
|
|
{ |
24
|
|
|
// $this->object = $this->getMockBuilder('OPCache') |
25
|
|
|
// ->getMock(); |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* Tears down the fixture, for example, closes a network connection. |
30
|
|
|
* This method is called after a test is executed. |
31
|
|
|
*/ |
32
|
|
|
protected function tearDown() |
33
|
|
|
{ |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @covers OPCache\OPCache::cacheClear |
38
|
|
|
* @todo Implement testCacheClear(). |
39
|
|
|
*/ |
40
|
|
|
public function testCacheClear() |
41
|
|
|
{ |
42
|
|
|
$opcache = new OPCache(); |
43
|
|
|
$opcache->cacheClear(); |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @covers OPCache::drushInvalidate |
48
|
|
|
* @todo Implement testDrushInvalidate(). |
49
|
|
|
*/ |
50
|
|
|
public function testDrushInvalidate() |
51
|
|
|
{ |
52
|
|
|
// Remove the following lines when you implement this test. |
53
|
|
|
$this->markTestIncomplete( |
54
|
|
|
'This test has not been implemented yet.' |
55
|
|
|
); |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @covers OPCache::drushReset |
60
|
|
|
* @todo Implement testDrushReset(). |
61
|
|
|
*/ |
62
|
|
|
public function testDrushReset() |
63
|
|
|
{ |
64
|
|
|
// Remove the following lines when you implement this test. |
65
|
|
|
$this->markTestIncomplete( |
66
|
|
|
'This test has not been implemented yet.' |
67
|
|
|
); |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @covers OPCache::drushStatus |
72
|
|
|
* @todo Implement testDrushStatus(). |
73
|
|
|
*/ |
74
|
|
|
public function testDrushStatus() |
75
|
|
|
{ |
76
|
|
|
// Remove the following lines when you implement this test. |
77
|
|
|
$this->markTestIncomplete( |
78
|
|
|
'This test has not been implemented yet.' |
79
|
|
|
); |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @covers OPCache::getToken |
84
|
|
|
* @todo Implement testGetToken(). |
85
|
|
|
*/ |
86
|
|
|
public function testGetToken() |
87
|
|
|
{ |
88
|
|
|
// Remove the following lines when you implement this test. |
89
|
|
|
$this->markTestIncomplete( |
90
|
|
|
'This test has not been implemented yet.' |
91
|
|
|
); |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @covers OPCache::isEnabled |
96
|
|
|
* @todo Implement testIsEnabled(). |
97
|
|
|
*/ |
98
|
|
|
public function testIsEnabled() |
99
|
|
|
{ |
100
|
|
|
// Remove the following lines when you implement this test. |
101
|
|
|
$this->markTestIncomplete( |
102
|
|
|
'This test has not been implemented yet.' |
103
|
|
|
); |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @covers OPCache::invalidate |
108
|
|
|
* @todo Implement testInvalidate(). |
109
|
|
|
*/ |
110
|
|
|
public function testInvalidate() |
111
|
|
|
{ |
112
|
|
|
// Remove the following lines when you implement this test. |
113
|
|
|
$this->markTestIncomplete( |
114
|
|
|
'This test has not been implemented yet.' |
115
|
|
|
); |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @covers OPCache::reset |
120
|
|
|
* @todo Implement testReset(). |
121
|
|
|
*/ |
122
|
|
|
public function testReset() |
123
|
|
|
{ |
124
|
|
|
// Remove the following lines when you implement this test. |
125
|
|
|
$this->markTestIncomplete( |
126
|
|
|
'This test has not been implemented yet.' |
127
|
|
|
); |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @covers OPCache::status |
132
|
|
|
* @todo Implement testStatus(). |
133
|
|
|
*/ |
134
|
|
|
public function testStatus() |
135
|
|
|
{ |
136
|
|
|
// Remove the following lines when you implement this test. |
137
|
|
|
$this->markTestIncomplete( |
138
|
|
|
'This test has not been implemented yet.' |
139
|
|
|
); |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @covers OPCache::verifyToken |
144
|
|
|
* @todo Implement testVerifyToken(). |
145
|
|
|
*/ |
146
|
|
|
public function testVerifyToken() |
147
|
|
|
{ |
148
|
|
|
// Remove the following lines when you implement this test. |
149
|
|
|
$this->markTestIncomplete( |
150
|
|
|
'This test has not been implemented yet.' |
151
|
|
|
); |
152
|
|
|
} |
153
|
|
|
} |
154
|
|
|
|