1 | <?php |
||
5 | class FantasticoTest extends PHPUnit_Framework_TestCase |
||
|
|||
6 | { |
||
7 | /** |
||
8 | * @var Fantastico |
||
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\Fantastico\Fantastico::connect |
||
31 | * @todo Implement testConnect(). |
||
32 | */ |
||
33 | public function testConnect() |
||
40 | |||
41 | /** |
||
42 | * @covers Detain\Fantastico\Fantastico::get_ip_types |
||
43 | * @todo Implement testGet_ip_types(). |
||
44 | */ |
||
45 | public function testGet_ip_types() |
||
52 | |||
53 | /** |
||
54 | * @covers Detain\Fantastico\Fantastico::is_type |
||
55 | * @todo Implement testIs_type(). |
||
56 | */ |
||
57 | public function testIs_type() |
||
64 | |||
65 | /** |
||
66 | * @covers Detain\Fantastico\Fantastico::getIpList |
||
67 | * @todo Implement testGetIpList(). |
||
68 | */ |
||
69 | public function testGetIpList() |
||
76 | |||
77 | /** |
||
78 | * @covers Detain\Fantastico\Fantastico::getIpListDetailed |
||
79 | * @todo Implement testGetIpListDetailed(). |
||
80 | */ |
||
81 | public function testGetIpListDetailed() |
||
88 | |||
89 | /** |
||
90 | * @covers Detain\Fantastico\Fantastico::valid_ip |
||
91 | * @todo Implement testValid_ip(). |
||
92 | */ |
||
93 | public function testValid_ip() |
||
100 | |||
101 | /** |
||
102 | * @covers Detain\Fantastico\Fantastico::getIpDetails |
||
103 | * @todo Implement testGetIpDetails(). |
||
104 | */ |
||
105 | public function testGetIpDetails() |
||
112 | |||
113 | /** |
||
114 | * @covers Detain\Fantastico\Fantastico::editIp |
||
115 | * @todo Implement testEditIp(). |
||
116 | */ |
||
117 | public function testEditIp() |
||
124 | |||
125 | /** |
||
126 | * @covers Detain\Fantastico\Fantastico::addIp |
||
127 | * @todo Implement testAddIp(). |
||
128 | */ |
||
129 | public function testAddIp() |
||
136 | |||
137 | /** |
||
138 | * @covers Detain\Fantastico\Fantastico::deactivateIp |
||
139 | * @todo Implement testDeactivateIp(). |
||
140 | */ |
||
141 | public function testDeactivateIp() |
||
148 | |||
149 | /** |
||
150 | * @covers Detain\Fantastico\Fantastico::reactivateIp |
||
151 | * @todo Implement testReactivateIp(). |
||
152 | */ |
||
153 | public function testReactivateIp() |
||
160 | |||
161 | /** |
||
162 | * @covers Detain\Fantastico\Fantastico::deleteIp |
||
163 | * @todo Implement testDeleteIp(). |
||
164 | */ |
||
165 | public function testDeleteIp() |
||
172 | } |
||
173 |
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.