1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace OPCache; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2015-03-12 at 16:18:04. |
7
|
|
|
*/ |
8
|
|
View Code Duplication |
class OPCacheStatusTest extends \PHPUnit_Framework_TestCase |
|
|
|
|
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @var OPCacheStatus |
12
|
|
|
*/ |
13
|
|
|
protected $object; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* Sets up the fixture, for example, opens a network connection. |
17
|
|
|
* This method is called before a test is executed. |
18
|
|
|
*/ |
19
|
|
|
protected function setUp() |
20
|
|
|
{ |
21
|
|
|
} |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Tears down the fixture, for example, closes a network connection. |
25
|
|
|
* This method is called after a test is executed. |
26
|
|
|
*/ |
27
|
|
|
protected function tearDown() |
28
|
|
|
{ |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @covers OPCacheStatus::getStatusData |
33
|
|
|
* @todo Implement testGetStatusData(). |
34
|
|
|
*/ |
35
|
|
|
public function testGetStatusData() |
36
|
|
|
{ |
37
|
|
|
// Remove the following lines when you implement this test. |
38
|
|
|
$this->markTestIncomplete( |
39
|
|
|
'This test has not been implemented yet.' |
40
|
|
|
); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @covers OPCacheStatus::getCurrentStatus |
45
|
|
|
* @todo Implement testGetCurrentStatus(). |
46
|
|
|
*/ |
47
|
|
|
public function testGetCurrentStatus() |
48
|
|
|
{ |
49
|
|
|
// Remove the following lines when you implement this test. |
50
|
|
|
$this->markTestIncomplete( |
51
|
|
|
'This test has not been implemented yet.' |
52
|
|
|
); |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @covers OPCacheStatus::getMemoryInfo |
57
|
|
|
* @todo Implement testGetMemoryInfo(). |
58
|
|
|
*/ |
59
|
|
|
public function testGetMemoryInfo() |
60
|
|
|
{ |
61
|
|
|
// Remove the following lines when you implement this test. |
62
|
|
|
$this->markTestIncomplete( |
63
|
|
|
'This test has not been implemented yet.' |
64
|
|
|
); |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @covers OPCacheStatus::getMemoryUsage |
69
|
|
|
* @todo Implement testGetMemoryUsage(). |
70
|
|
|
*/ |
71
|
|
|
public function testGetMemoryUsage() |
72
|
|
|
{ |
73
|
|
|
// Remove the following lines when you implement this test. |
74
|
|
|
$this->markTestIncomplete( |
75
|
|
|
'This test has not been implemented yet.' |
76
|
|
|
); |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @covers OPCacheStatus::getStatistics |
81
|
|
|
* @todo Implement testGetStatistics(). |
82
|
|
|
*/ |
83
|
|
|
public function testGetStatistics() |
84
|
|
|
{ |
85
|
|
|
// Remove the following lines when you implement this test. |
86
|
|
|
$this->markTestIncomplete( |
87
|
|
|
'This test has not been implemented yet.' |
88
|
|
|
); |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @covers OPCacheStatus::getScripts |
93
|
|
|
* @todo Implement testGetScripts(). |
94
|
|
|
*/ |
95
|
|
|
public function testGetScripts() |
96
|
|
|
{ |
97
|
|
|
// Remove the following lines when you implement this test. |
98
|
|
|
$this->markTestIncomplete( |
99
|
|
|
'This test has not been implemented yet.' |
100
|
|
|
); |
101
|
|
|
} |
102
|
|
|
} |
103
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.