1 | <?php |
||
5 | class CpanelTest extends PHPUnit_Framework_TestCase |
||
|
|||
6 | { |
||
7 | /** |
||
8 | * @var Cpanel |
||
9 | */ |
||
10 | protected $object; |
||
11 | |||
12 | /** |
||
13 | * Sets up the fixture, for example, opens a network connection. |
||
14 | * This method is called before a test is executed. |
||
15 | */ |
||
16 | protected function setUp() |
||
20 | |||
21 | /** |
||
22 | * Tears down the fixture, for example, closes a network connection. |
||
23 | * This method is called after a test is executed. |
||
24 | */ |
||
25 | protected function tearDown() |
||
28 | |||
29 | /** |
||
30 | * @covers Detain\Cpanel\Cpanel::setopt |
||
31 | * @todo Implement testSetopt(). |
||
32 | */ |
||
33 | public function testSetopt() |
||
40 | |||
41 | /** |
||
42 | * @covers Detain\Cpanel\Cpanel::setCredentials |
||
43 | * @todo Implement testSetCredentials(). |
||
44 | */ |
||
45 | public function testSetCredentials() |
||
52 | |||
53 | /** |
||
54 | * @covers Detain\Cpanel\Cpanel::set_format |
||
55 | * @todo Implement testSet_format(). |
||
56 | */ |
||
57 | public function testSet_format() |
||
64 | |||
65 | /** |
||
66 | * @covers Detain\Cpanel\Cpanel::reactivateLicense |
||
67 | * @todo Implement testReactivateLicense(). |
||
68 | */ |
||
69 | public function testReactivateLicense() |
||
76 | |||
77 | /** |
||
78 | * @covers Detain\Cpanel\Cpanel::expireLicense |
||
79 | * @todo Implement testExpireLicense(). |
||
80 | */ |
||
81 | public function testExpireLicense() |
||
88 | |||
89 | /** |
||
90 | * @covers Detain\Cpanel\Cpanel::extendOnetimeUpdates |
||
91 | * @todo Implement testExtendOnetimeUpdates(). |
||
92 | */ |
||
93 | public function testExtendOnetimeUpdates() |
||
100 | |||
101 | /** |
||
102 | * @covers Detain\Cpanel\Cpanel::changeip |
||
103 | * @todo Implement testChangeip(). |
||
104 | */ |
||
105 | public function testChangeip() |
||
112 | |||
113 | /** |
||
114 | * @covers Detain\Cpanel\Cpanel::requestTransfer |
||
115 | * @todo Implement testRequestTransfer(). |
||
116 | */ |
||
117 | public function testRequestTransfer() |
||
124 | |||
125 | /** |
||
126 | * @covers Detain\Cpanel\Cpanel::activateLicense |
||
127 | * @todo Implement testActivateLicense(). |
||
128 | */ |
||
129 | public function testActivateLicense() |
||
136 | |||
137 | /** |
||
138 | * @covers Detain\Cpanel\Cpanel::addPickupPass |
||
139 | * @todo Implement testAddPickupPass(). |
||
140 | */ |
||
141 | public function testAddPickupPass() |
||
148 | |||
149 | /** |
||
150 | * @covers Detain\Cpanel\Cpanel::registerAuth |
||
151 | * @todo Implement testRegisterAuth(). |
||
152 | */ |
||
153 | public function testRegisterAuth() |
||
160 | |||
161 | /** |
||
162 | * @covers Detain\Cpanel\Cpanel::fetchGroups |
||
163 | * @todo Implement testFetchGroups(). |
||
164 | */ |
||
165 | public function testFetchGroups() |
||
172 | |||
173 | /** |
||
174 | * @covers Detain\Cpanel\Cpanel::fetchLicenseRiskData |
||
175 | * @todo Implement testFetchLicenseRiskData(). |
||
176 | */ |
||
177 | public function testFetchLicenseRiskData() |
||
184 | |||
185 | /** |
||
186 | * @covers Detain\Cpanel\Cpanel::fetchLicenseRaw |
||
187 | * @todo Implement testFetchLicenseRaw(). |
||
188 | */ |
||
189 | public function testFetchLicenseRaw() |
||
196 | |||
197 | /** |
||
198 | * @covers Detain\Cpanel\Cpanel::fetchLicenseId |
||
199 | * @todo Implement testFetchLicenseId(). |
||
200 | */ |
||
201 | public function testFetchLicenseId() |
||
208 | |||
209 | /** |
||
210 | * @covers Detain\Cpanel\Cpanel::fetchPackages |
||
211 | * @todo Implement testFetchPackages(). |
||
212 | */ |
||
213 | public function testFetchPackages() |
||
220 | |||
221 | /** |
||
222 | * @covers Detain\Cpanel\Cpanel::fetchLicenses |
||
223 | * @todo Implement testFetchLicenses(). |
||
224 | */ |
||
225 | public function testFetchLicenses() |
||
232 | |||
233 | /** |
||
234 | * @covers Detain\Cpanel\Cpanel::fetchExpiredLicenses |
||
235 | * @todo Implement testFetchExpiredLicenses(). |
||
236 | */ |
||
237 | public function testFetchExpiredLicenses() |
||
244 | |||
245 | /** |
||
246 | * @covers Detain\Cpanel\Cpanel::findKey |
||
247 | * @todo Implement testFindKey(). |
||
248 | */ |
||
249 | public function testFindKey() |
||
256 | } |
||
257 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.