1 | <?php |
||
38 | class FlexiBeeTest extends \Test\Ease\BrickTest |
||
|
|||
39 | { |
||
40 | /** |
||
41 | * @var FlexiBee |
||
42 | */ |
||
43 | protected $object; |
||
44 | |||
45 | /** |
||
46 | * Sets up the fixture, for example, opens a network connection. |
||
47 | * This method is called before a test is executed. |
||
48 | * @covers FlexiPeeHP\FlexiBee::__construct |
||
49 | */ |
||
50 | protected function setUp() |
||
54 | |||
55 | /** |
||
56 | * Tears down the fixture, for example, closes a network connection. |
||
57 | * This method is called after a test is executed. |
||
58 | */ |
||
59 | protected function tearDown() |
||
63 | |||
64 | public function testCurlInit() |
||
69 | |||
70 | /** |
||
71 | * @covers FlexiPeeHP\FlexiBee::setAgenda |
||
72 | */ |
||
73 | public function testSetAgenda() |
||
78 | |||
79 | /** |
||
80 | * @covers FlexiPeeHP\FlexiBee::object2array |
||
81 | */ |
||
82 | public function testObject2array() |
||
92 | |||
93 | /** |
||
94 | * @covers FlexiPeeHP\FlexiBee::performRequest |
||
95 | */ |
||
96 | public function testPerformRequest() |
||
118 | |||
119 | /** |
||
120 | * @covers FlexiPeeHP\FlexiBee::getLastInsertedId |
||
121 | * @depends testInsertToFlexiBee |
||
122 | */ |
||
123 | public function testGetLastInsertedId() |
||
127 | |||
128 | /** |
||
129 | * @covers FlexiPeeHP\FlexiBee::xml2array |
||
130 | */ |
||
131 | public function testXml2array() |
||
147 | |||
148 | /** |
||
149 | * @covers FlexiPeeHP\FlexiBee::disconnect |
||
150 | * |
||
151 | * @depends testPerformRequest |
||
152 | * @depends testLoadFlexiData |
||
153 | * @depends testGetFlexiRow |
||
154 | * @depends testGetFlexiData |
||
155 | * @depends testLoadFromFlexiBee |
||
156 | * @depends testSaveToFlexiBee |
||
157 | * @depends testInsertToFlexiBee |
||
158 | * @depends testIdExists |
||
159 | * @depends testRecordExists |
||
160 | * @depends testGetColumnsFromFlexibee |
||
161 | * @depends testSearchString |
||
162 | */ |
||
163 | public function testDisconnect() |
||
168 | |||
169 | /** |
||
170 | * @covers FlexiPeeHP\FlexiBee::__destruct |
||
171 | * @depends testDisconnect |
||
172 | */ |
||
173 | public function test__destruct() |
||
177 | |||
178 | /** |
||
179 | * @covers FlexiPeeHP\FlexiBee::loadFlexiData |
||
180 | * @todo Implement testLoadFlexiData(). |
||
181 | */ |
||
182 | public function testLoadFlexiData() |
||
189 | |||
190 | /** |
||
191 | * @covers FlexiPeeHP\FlexiBee::getFlexiRow |
||
192 | */ |
||
193 | public function testGetFlexiRow() |
||
198 | |||
199 | /** |
||
200 | * @covers FlexiPeeHP\FlexiBee::getFlexiData |
||
201 | */ |
||
202 | public function testGetFlexiData() |
||
216 | |||
217 | /** |
||
218 | * @covers FlexiPeeHP\FlexiBee::loadFromFlexiBee |
||
219 | */ |
||
220 | public function testLoadFromFlexiBee() |
||
225 | |||
226 | /** |
||
227 | * @covers FlexiPeeHP\FlexiBee::saveToFlexiBee |
||
228 | * @todo Implement testSaveToFlexiBee(). |
||
229 | */ |
||
230 | public function testSaveToFlexiBee() |
||
237 | |||
238 | /** |
||
239 | * @covers FlexiPeeHP\FlexiBee::jsonizeData |
||
240 | */ |
||
241 | public function testJsonizeData() |
||
246 | |||
247 | /** |
||
248 | * @covers FlexiPeeHP\FlexiBee::insertToFlexiBee |
||
249 | * @todo Implement testInsertToFlexiBee(). |
||
250 | */ |
||
251 | public function testInsertToFlexiBee() |
||
258 | |||
259 | /** |
||
260 | * @covers FlexiPeeHP\FlexiBee::idExists |
||
261 | * @todo Implement testIdExists(). |
||
262 | */ |
||
263 | public function testIdExists() |
||
270 | |||
271 | /** |
||
272 | * @covers FlexiPeeHP\FlexiBee::recordExists |
||
273 | * @todo Implement testRecordExists(). |
||
274 | */ |
||
275 | public function testRecordExists() |
||
282 | |||
283 | /** |
||
284 | * @covers FlexiPeeHP\FlexiBee::getColumnsFromFlexibee |
||
285 | * @todo Implement testGetColumnsFromFlexibee(). |
||
286 | */ |
||
287 | public function testGetColumnsFromFlexibee() |
||
294 | |||
295 | /** |
||
296 | * @covers FlexiPeeHP\FlexiBee::getKod |
||
297 | * @todo Implement testGetKod(). |
||
298 | */ |
||
299 | public function testGetKod() |
||
306 | |||
307 | /** |
||
308 | * @covers FlexiPeeHP\FlexiBee::searchString |
||
309 | * @todo Implement testSearchString(). |
||
310 | */ |
||
311 | public function testSearchString() |
||
318 | |||
319 | /** |
||
320 | * @covers FlexiPeeHP\FlexiBee::logResult |
||
321 | * @todo Implement testLogResult(). |
||
322 | */ |
||
323 | public function testLogResult() |
||
330 | |||
331 | /** |
||
332 | * @covers FlexiPeeHP\FlexiBee::flexiUrl |
||
333 | */ |
||
334 | public function testFlexiUrl() |
||
341 | } |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.