@@ -19,7 +19,8 @@ discard block |
||
19 | 19 | * Sets up the fixture, for example, opens a network connection. |
20 | 20 | * This method is called before a test is executed. |
21 | 21 | */ |
22 | - protected function setUp() { |
|
22 | + protected function setUp() |
|
23 | + { |
|
23 | 24 | $this->object = new Article; |
24 | 25 | } |
25 | 26 | |
@@ -27,7 +28,8 @@ discard block |
||
27 | 28 | * Tears down the fixture, for example, closes a network connection. |
28 | 29 | * This method is called after a test is executed. |
29 | 30 | */ |
30 | - protected function tearDown() { |
|
31 | + protected function tearDown() |
|
32 | + { |
|
31 | 33 | |
32 | 34 | } |
33 | 35 | |
@@ -35,7 +37,8 @@ discard block |
||
35 | 37 | * @covers AppBundle\Entity\Article::getId |
36 | 38 | * @todo Implement testGetId(). |
37 | 39 | */ |
38 | - public function testGetId() { |
|
40 | + public function testGetId() |
|
41 | + { |
|
39 | 42 | // Remove the following lines when you implement this test. |
40 | 43 | $this->markTestIncomplete( |
41 | 44 | 'This test has not been implemented yet.' |
@@ -46,7 +49,8 @@ discard block |
||
46 | 49 | * @covers AppBundle\Entity\Article::setName |
47 | 50 | * @todo Implement testSetName(). |
48 | 51 | */ |
49 | - public function testSetName() { |
|
52 | + public function testSetName() |
|
53 | + { |
|
50 | 54 | // Remove the following lines when you implement this test. |
51 | 55 | $this->markTestIncomplete( |
52 | 56 | 'This test has not been implemented yet.' |
@@ -57,7 +61,8 @@ discard block |
||
57 | 61 | * @covers AppBundle\Entity\Article::getName |
58 | 62 | * @todo Implement testGetName(). |
59 | 63 | */ |
60 | - public function testGetName() { |
|
64 | + public function testGetName() |
|
65 | + { |
|
61 | 66 | // Remove the following lines when you implement this test. |
62 | 67 | $this->markTestIncomplete( |
63 | 68 | 'This test has not been implemented yet.' |
@@ -68,7 +73,8 @@ discard block |
||
68 | 73 | * @covers AppBundle\Entity\Article::setPackaging |
69 | 74 | * @todo Implement testSetPackaging(). |
70 | 75 | */ |
71 | - public function testSetPackaging() { |
|
76 | + public function testSetPackaging() |
|
77 | + { |
|
72 | 78 | // Remove the following lines when you implement this test. |
73 | 79 | $this->markTestIncomplete( |
74 | 80 | 'This test has not been implemented yet.' |
@@ -79,7 +85,8 @@ discard block |
||
79 | 85 | * @covers AppBundle\Entity\Article::getPackaging |
80 | 86 | * @todo Implement testGetPackaging(). |
81 | 87 | */ |
82 | - public function testGetPackaging() { |
|
88 | + public function testGetPackaging() |
|
89 | + { |
|
83 | 90 | // Remove the following lines when you implement this test. |
84 | 91 | $this->markTestIncomplete( |
85 | 92 | 'This test has not been implemented yet.' |
@@ -90,7 +97,8 @@ discard block |
||
90 | 97 | * @covers AppBundle\Entity\Article::setPrice |
91 | 98 | * @todo Implement testSetPrice(). |
92 | 99 | */ |
93 | - public function testSetPrice() { |
|
100 | + public function testSetPrice() |
|
101 | + { |
|
94 | 102 | // Remove the following lines when you implement this test. |
95 | 103 | $this->markTestIncomplete( |
96 | 104 | 'This test has not been implemented yet.' |
@@ -101,7 +109,8 @@ discard block |
||
101 | 109 | * @covers AppBundle\Entity\Article::getPrice |
102 | 110 | * @todo Implement testGetPrice(). |
103 | 111 | */ |
104 | - public function testGetPrice() { |
|
112 | + public function testGetPrice() |
|
113 | + { |
|
105 | 114 | // Remove the following lines when you implement this test. |
106 | 115 | $this->markTestIncomplete( |
107 | 116 | 'This test has not been implemented yet.' |
@@ -112,7 +121,8 @@ discard block |
||
112 | 121 | * @covers AppBundle\Entity\Article::setQuantity |
113 | 122 | * @todo Implement testSetQuantity(). |
114 | 123 | */ |
115 | - public function testSetQuantity() { |
|
124 | + public function testSetQuantity() |
|
125 | + { |
|
116 | 126 | // Remove the following lines when you implement this test. |
117 | 127 | $this->markTestIncomplete( |
118 | 128 | 'This test has not been implemented yet.' |
@@ -123,7 +133,8 @@ discard block |
||
123 | 133 | * @covers AppBundle\Entity\Article::getQuantity |
124 | 134 | * @todo Implement testGetQuantity(). |
125 | 135 | */ |
126 | - public function testGetQuantity() { |
|
136 | + public function testGetQuantity() |
|
137 | + { |
|
127 | 138 | // Remove the following lines when you implement this test. |
128 | 139 | $this->markTestIncomplete( |
129 | 140 | 'This test has not been implemented yet.' |
@@ -134,7 +145,8 @@ discard block |
||
134 | 145 | * @covers AppBundle\Entity\Article::setMinstock |
135 | 146 | * @todo Implement testSetMinstock(). |
136 | 147 | */ |
137 | - public function testSetMinstock() { |
|
148 | + public function testSetMinstock() |
|
149 | + { |
|
138 | 150 | // Remove the following lines when you implement this test. |
139 | 151 | $this->markTestIncomplete( |
140 | 152 | 'This test has not been implemented yet.' |
@@ -145,7 +157,8 @@ discard block |
||
145 | 157 | * @covers AppBundle\Entity\Article::getMinstock |
146 | 158 | * @todo Implement testGetMinstock(). |
147 | 159 | */ |
148 | - public function testGetMinstock() { |
|
160 | + public function testGetMinstock() |
|
161 | + { |
|
149 | 162 | // Remove the following lines when you implement this test. |
150 | 163 | $this->markTestIncomplete( |
151 | 164 | 'This test has not been implemented yet.' |
@@ -156,7 +169,8 @@ discard block |
||
156 | 169 | * @covers AppBundle\Entity\Article::setSupplier |
157 | 170 | * @todo Implement testSetSupplier(). |
158 | 171 | */ |
159 | - public function testSetSupplier() { |
|
172 | + public function testSetSupplier() |
|
173 | + { |
|
160 | 174 | // Remove the following lines when you implement this test. |
161 | 175 | $this->markTestIncomplete( |
162 | 176 | 'This test has not been implemented yet.' |
@@ -167,7 +181,8 @@ discard block |
||
167 | 181 | * @covers AppBundle\Entity\Article::getSupplier |
168 | 182 | * @todo Implement testGetSupplier(). |
169 | 183 | */ |
170 | - public function testGetSupplier() { |
|
184 | + public function testGetSupplier() |
|
185 | + { |
|
171 | 186 | // Remove the following lines when you implement this test. |
172 | 187 | $this->markTestIncomplete( |
173 | 188 | 'This test has not been implemented yet.' |
@@ -178,7 +193,8 @@ discard block |
||
178 | 193 | * @covers AppBundle\Entity\Article::setUnitStorage |
179 | 194 | * @todo Implement testSetUnitStorage(). |
180 | 195 | */ |
181 | - public function testSetUnitStorage() { |
|
196 | + public function testSetUnitStorage() |
|
197 | + { |
|
182 | 198 | // Remove the following lines when you implement this test. |
183 | 199 | $this->markTestIncomplete( |
184 | 200 | 'This test has not been implemented yet.' |
@@ -189,7 +205,8 @@ discard block |
||
189 | 205 | * @covers AppBundle\Entity\Article::getUnitStorage |
190 | 206 | * @todo Implement testGetUnitStorage(). |
191 | 207 | */ |
192 | - public function testGetUnitStorage() { |
|
208 | + public function testGetUnitStorage() |
|
209 | + { |
|
193 | 210 | // Remove the following lines when you implement this test. |
194 | 211 | $this->markTestIncomplete( |
195 | 212 | 'This test has not been implemented yet.' |
@@ -200,7 +217,8 @@ discard block |
||
200 | 217 | * @covers AppBundle\Entity\Article::addZoneStorage |
201 | 218 | * @todo Implement testAddZoneStorage(). |
202 | 219 | */ |
203 | - public function testAddZoneStorage() { |
|
220 | + public function testAddZoneStorage() |
|
221 | + { |
|
204 | 222 | // Remove the following lines when you implement this test. |
205 | 223 | $this->markTestIncomplete( |
206 | 224 | 'This test has not been implemented yet.' |
@@ -211,7 +229,8 @@ discard block |
||
211 | 229 | * @covers AppBundle\Entity\Article::removeZoneStorage |
212 | 230 | * @todo Implement testRemoveZoneStorage(). |
213 | 231 | */ |
214 | - public function testRemoveZoneStorage() { |
|
232 | + public function testRemoveZoneStorage() |
|
233 | + { |
|
215 | 234 | // Remove the following lines when you implement this test. |
216 | 235 | $this->markTestIncomplete( |
217 | 236 | 'This test has not been implemented yet.' |
@@ -222,7 +241,8 @@ discard block |
||
222 | 241 | * @covers AppBundle\Entity\Article::getZoneStorages |
223 | 242 | * @todo Implement testGetZoneStorages(). |
224 | 243 | */ |
225 | - public function testGetZoneStorages() { |
|
244 | + public function testGetZoneStorages() |
|
245 | + { |
|
226 | 246 | // Remove the following lines when you implement this test. |
227 | 247 | $this->markTestIncomplete( |
228 | 248 | 'This test has not been implemented yet.' |
@@ -233,7 +253,8 @@ discard block |
||
233 | 253 | * @covers AppBundle\Entity\Article::setFamilyLog |
234 | 254 | * @todo Implement testSetFamilyLog(). |
235 | 255 | */ |
236 | - public function testSetFamilyLog() { |
|
256 | + public function testSetFamilyLog() |
|
257 | + { |
|
237 | 258 | // Remove the following lines when you implement this test. |
238 | 259 | $this->markTestIncomplete( |
239 | 260 | 'This test has not been implemented yet.' |
@@ -244,7 +265,8 @@ discard block |
||
244 | 265 | * @covers AppBundle\Entity\Article::getFamilyLog |
245 | 266 | * @todo Implement testGetFamilyLog(). |
246 | 267 | */ |
247 | - public function testGetFamilyLog() { |
|
268 | + public function testGetFamilyLog() |
|
269 | + { |
|
248 | 270 | // Remove the following lines when you implement this test. |
249 | 271 | $this->markTestIncomplete( |
250 | 272 | 'This test has not been implemented yet.' |
@@ -255,7 +277,8 @@ discard block |
||
255 | 277 | * @covers AppBundle\Entity\Article::setSubFamilyLog |
256 | 278 | * @todo Implement testSetSubFamilyLog(). |
257 | 279 | */ |
258 | - public function testSetSubFamilyLog() { |
|
280 | + public function testSetSubFamilyLog() |
|
281 | + { |
|
259 | 282 | // Remove the following lines when you implement this test. |
260 | 283 | $this->markTestIncomplete( |
261 | 284 | 'This test has not been implemented yet.' |
@@ -266,7 +289,8 @@ discard block |
||
266 | 289 | * @covers AppBundle\Entity\Article::getSubFamilyLog |
267 | 290 | * @todo Implement testGetSubFamilyLog(). |
268 | 291 | */ |
269 | - public function testGetSubFamilyLog() { |
|
292 | + public function testGetSubFamilyLog() |
|
293 | + { |
|
270 | 294 | // Remove the following lines when you implement this test. |
271 | 295 | $this->markTestIncomplete( |
272 | 296 | 'This test has not been implemented yet.' |
@@ -277,7 +301,8 @@ discard block |
||
277 | 301 | * @covers AppBundle\Entity\Article::setActive |
278 | 302 | * @todo Implement testSetActive(). |
279 | 303 | */ |
280 | - public function testSetActive() { |
|
304 | + public function testSetActive() |
|
305 | + { |
|
281 | 306 | // Remove the following lines when you implement this test. |
282 | 307 | $this->markTestIncomplete( |
283 | 308 | 'This test has not been implemented yet.' |
@@ -288,7 +313,8 @@ discard block |
||
288 | 313 | * @covers AppBundle\Entity\Article::isActive |
289 | 314 | * @todo Implement testIsActive(). |
290 | 315 | */ |
291 | - public function testIsActive() { |
|
316 | + public function testIsActive() |
|
317 | + { |
|
292 | 318 | // Remove the following lines when you implement this test. |
293 | 319 | $this->markTestIncomplete( |
294 | 320 | 'This test has not been implemented yet.' |
@@ -299,7 +325,8 @@ discard block |
||
299 | 325 | * @covers AppBundle\Entity\Article::setSlug |
300 | 326 | * @todo Implement testSetSlug(). |
301 | 327 | */ |
302 | - public function testSetSlug() { |
|
328 | + public function testSetSlug() |
|
329 | + { |
|
303 | 330 | // Remove the following lines when you implement this test. |
304 | 331 | $this->markTestIncomplete( |
305 | 332 | 'This test has not been implemented yet.' |
@@ -310,7 +337,8 @@ discard block |
||
310 | 337 | * @covers AppBundle\Entity\Article::getSlug |
311 | 338 | * @todo Implement testGetSlug(). |
312 | 339 | */ |
313 | - public function testGetSlug() { |
|
340 | + public function testGetSlug() |
|
341 | + { |
|
314 | 342 | // Remove the following lines when you implement this test. |
315 | 343 | $this->markTestIncomplete( |
316 | 344 | 'This test has not been implemented yet.' |
@@ -321,7 +349,8 @@ discard block |
||
321 | 349 | * @covers AppBundle\Entity\Article::__toString |
322 | 350 | * @todo Implement test__toString(). |
323 | 351 | */ |
324 | - public function test__toString() { |
|
352 | + public function test__toString() |
|
353 | + { |
|
325 | 354 | // Remove the following lines when you implement this test. |
326 | 355 | $this->markTestIncomplete( |
327 | 356 | 'This test has not been implemented yet.' |
@@ -69,7 +69,8 @@ |
||
69 | 69 | ); |
70 | 70 | } |
71 | 71 | |
72 | - public function testIndex() { |
|
72 | + public function testIndex() |
|
73 | + { |
|
73 | 74 | $client = static::createClient(); |
74 | 75 | |
75 | 76 | $crawler = $client->request('GET', '/'); |
@@ -9,7 +9,8 @@ discard block |
||
9 | 9 | /** |
10 | 10 | * @return PHPUnit_Extensions_Database_DB_IDatabaseConnection |
11 | 11 | */ |
12 | - public function getConnection() { |
|
12 | + public function getConnection() |
|
13 | + { |
|
13 | 14 | $pdo = new \PDO("DB_DNS", "DB_USER", "DB_PASSWD", "DB_DBNAME"); |
14 | 15 | } |
15 | 16 | /** |
@@ -93,7 +94,8 @@ discard block |
||
93 | 94 | ); |
94 | 95 | } |
95 | 96 | |
96 | - public function testIndex() { |
|
97 | + public function testIndex() |
|
98 | + { |
|
97 | 99 | $client = self::createClient( |
98 | 100 | array(), |
99 | 101 | array( |
@@ -69,7 +69,8 @@ |
||
69 | 69 | ); |
70 | 70 | } |
71 | 71 | |
72 | - public function testIndex() { |
|
72 | + public function testIndex() |
|
73 | + { |
|
73 | 74 | $client = static::createClient(); |
74 | 75 | |
75 | 76 | $crawler = $client->request('GET', '/'); |
@@ -55,7 +55,8 @@ |
||
55 | 55 | * @param \Doctrine\Common\Persistence\ObjectManager[] $etm An array of ObjectManager instances |
56 | 56 | * @return type |
57 | 57 | */ |
58 | - protected function getEntity($entityName, $etm) { |
|
58 | + protected function getEntity($entityName, $etm) |
|
59 | + { |
|
59 | 60 | switch ($entityName) { |
60 | 61 | case 'Article': |
61 | 62 | $entities = $etm->getRepository('AppBundle:'.$entityName)->getArticles(); |