@@ -25,14 +25,18 @@ public function testNoTweets()
25
25
$ crawler = $ this ->testClient ->request ('GET ' , $ path );
26
26
27
27
// <body>
28
- $ this ->assertSame (1 ,
29
- $ crawler ->filter ('html > body ' )->count ());
28
+ $ this ->assertSame (
29
+ 1 ,
30
+ $ crawler ->filter ('html > body ' )->count ()
31
+ );
30
32
31
33
// Tweet
32
- $ this ->assertSame (0 ,
34
+ $ this ->assertSame (
35
+ 0 ,
33
36
$ crawler ->filter (
34
37
'main.container > div.tweets > div.media > blockquote.media-body '
35
- )->count ());
38
+ )->count ()
39
+ );
36
40
}
37
41
38
42
public function testTweets ($ path = null )
@@ -52,8 +56,10 @@ public function testTweets($path = null)
52
56
$ this ->assertStatusCode (200 , $ this ->testClient );
53
57
54
58
if ($ profile = $ this ->testClient ->getProfile ()) {
55
- $ this ->assertSame (5 ,
56
- $ profile ->getCollector ('db ' )->getQueryCount ());
59
+ $ this ->assertSame (
60
+ 5 ,
61
+ $ profile ->getCollector ('db ' )->getQueryCount ()
62
+ );
57
63
} else {
58
64
$ this ->markTestIncomplete (
59
65
'Profiler is disabled. '
@@ -106,7 +112,8 @@ public function testTweets($path = null)
106
112
$ this ->assertSame (
107
113
4 ,
108
114
$ crawler ->filter (
109
- 'blockquote.media-body > p ' )->count ()
115
+ 'blockquote.media-body > p '
116
+ )->count ()
110
117
);
111
118
112
119
// User
@@ -157,8 +164,10 @@ public function testTweetsPages()
157
164
$ this ->assertStatusCode (200 , $ this ->testClient );
158
165
159
166
if ($ profile = $ this ->testClient ->getProfile ()) {
160
- $ this ->assertSame (4 ,
161
- $ profile ->getCollector ('db ' )->getQueryCount ());
167
+ $ this ->assertSame (
168
+ 4 ,
169
+ $ profile ->getCollector ('db ' )->getQueryCount ()
170
+ );
162
171
} else {
163
172
$ this ->markTestIncomplete (
164
173
'Profiler is disabled. '
@@ -182,7 +191,8 @@ public function testTweetsPages()
182
191
$ this ->assertSame (
183
192
5 ,
184
193
$ crawler ->filter (
185
- 'blockquote.media-body > p ' )->count ()
194
+ 'blockquote.media-body > p '
195
+ )->count ()
186
196
);
187
197
188
198
// User
@@ -211,7 +221,7 @@ public function testTweetsPages()
211
221
$ crawler ->filter (
212
222
'main.container > div.tweets > div.media > blockquote.media-body '
213
223
)->count ()
214
- );
224
+ );
215
225
216
226
// Next page
217
227
$ crawler = $ this ->testClient ->request ('GET ' , $ nextPage );
@@ -238,7 +248,7 @@ public function testTweetsPages()
238
248
$ link = $ crawler ->filter (
239
249
'main.container > div.tweets > div.media > ' .
240
250
'blockquote.media-body > small > a:last-child '
241
- )
251
+ )
242
252
->eq (4 )->link ();
243
253
244
254
$ crawler = $ this ->testClient ->click ($ link );
@@ -309,8 +319,10 @@ public function testCookie()
309
319
$ this ->assertStatusCode (200 , $ this ->testClient );
310
320
311
321
if ($ profile = $ this ->testClient ->getProfile ()) {
312
- $ this ->assertSame (5 ,
313
- $ profile ->getCollector ('db ' )->getQueryCount ());
322
+ $ this ->assertSame (
323
+ 5 ,
324
+ $ profile ->getCollector ('db ' )->getQueryCount ()
325
+ );
314
326
} else {
315
327
$ this ->markTestIncomplete (
316
328
'Profiler is disabled. '
@@ -433,8 +445,10 @@ public function testDeleteTweets()
433
445
$ this ->assertStatusCode (200 , $ this ->testClient );
434
446
435
447
if ($ profile = $ this ->testClient ->getProfile ()) {
436
- $ this ->assertSame (4 ,
437
- $ profile ->getCollector ('db ' )->getQueryCount ());
448
+ $ this ->assertSame (
449
+ 4 ,
450
+ $ profile ->getCollector ('db ' )->getQueryCount ()
451
+ );
438
452
} else {
439
453
$ this ->markTestIncomplete (
440
454
'Profiler is disabled. '
@@ -514,9 +528,11 @@ public function testDeleteTweets()
514
528
$ crawler = $ this ->testClient ->click ($ link );
515
529
516
530
// Image
517
- $ this ->assertSame (1 ,
531
+ $ this ->assertSame (
532
+ 1 ,
518
533
$ crawler ->filter ('main.container > div.tweets blockquote.media-body > ' .
519
- 'p > a > img ' )->count ());
534
+ 'p > a > img ' )->count ()
535
+ );
520
536
521
537
// Delete the second Tweet in order to remove all the Media
522
538
@@ -650,8 +666,10 @@ public function testHideRetweetedTweets()
650
666
$ this ->assertStatusCode (200 , $ this ->testClient );
651
667
652
668
if ($ profile = $ this ->testClient ->getProfile ()) {
653
- $ this ->assertSame (4 ,
654
- $ profile ->getCollector ('db ' )->getQueryCount ());
669
+ $ this ->assertSame (
670
+ 4 ,
671
+ $ profile ->getCollector ('db ' )->getQueryCount ()
672
+ );
655
673
} else {
656
674
$ this ->markTestIncomplete (
657
675
'Profiler is disabled. '
0 commit comments