File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -592,20 +592,20 @@ public function testSetCache()
592
592
593
593
$ options = ['etag ' => '"whatever" ' ];
594
594
$ response ->setCache ($ options );
595
- $ this ->assertEquals ($ response ->getEtag (), ' "whatever" ' );
595
+ $ this ->assertEquals (' "whatever" ' , $ response ->getEtag ());
596
596
597
597
$ now = $ this ->createDateTimeNow ();
598
598
$ options = ['last_modified ' => $ now ];
599
599
$ response ->setCache ($ options );
600
- $ this ->assertEquals ($ response -> getLastModified ()-> getTimestamp (), $ now ->getTimestamp ());
600
+ $ this ->assertEquals ($ now -> getTimestamp (), $ response -> getLastModified () ->getTimestamp ());
601
601
602
602
$ options = ['max_age ' => 100 ];
603
603
$ response ->setCache ($ options );
604
- $ this ->assertEquals ($ response ->getMaxAge (), 100 );
604
+ $ this ->assertEquals (100 , $ response ->getMaxAge ());
605
605
606
606
$ options = ['s_maxage ' => 200 ];
607
607
$ response ->setCache ($ options );
608
- $ this ->assertEquals ($ response ->getMaxAge (), 200 );
608
+ $ this ->assertEquals (200 , $ response ->getMaxAge ());
609
609
610
610
$ this ->assertTrue ($ response ->headers ->hasCacheControlDirective ('public ' ));
611
611
$ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('private ' ));
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public function testRead()
102
102
->method ('findOne ' )
103
103
->willReturnCallback (function ($ criteria ) use ($ testTimeout ) {
104
104
$ this ->assertArrayHasKey ($ this ->options ['id_field ' ], $ criteria );
105
- $ this ->assertEquals ($ criteria [$ this ->options ['id_field ' ]], ' foo ' );
105
+ $ this ->assertEquals (' foo ' , $ criteria [$ this ->options ['id_field ' ]]);
106
106
107
107
$ this ->assertArrayHasKey ($ this ->options ['expiry_field ' ], $ criteria );
108
108
$ this ->assertArrayHasKey ('$gte ' , $ criteria [$ this ->options ['expiry_field ' ]]);
Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ public function testClear()
87
87
$ _SESSION ['drak ' ] = 'loves symfony ' ;
88
88
$ storage ->getBag ('attributes ' )->set ('symfony ' , 'greatness ' );
89
89
$ key = $ storage ->getBag ('attributes ' )->getStorageKey ();
90
- $ this ->assertEquals ($ _SESSION [ $ key ], [ 'symfony ' => 'greatness ' ]);
91
- $ this ->assertEquals ($ _SESSION ['drak ' ], ' loves symfony ' );
90
+ $ this ->assertEquals ([ 'symfony ' => 'greatness ' ], $ _SESSION [ $ key ]);
91
+ $ this ->assertEquals (' loves symfony ' , $ _SESSION ['drak ' ]);
92
92
$ storage ->clear ();
93
- $ this ->assertEquals ($ _SESSION [ $ key ], [ ]);
94
- $ this ->assertEquals ($ _SESSION ['drak ' ], ' loves symfony ' );
93
+ $ this ->assertEquals ([ ], $ _SESSION [ $ key ]);
94
+ $ this ->assertEquals (' loves symfony ' , $ _SESSION ['drak ' ]);
95
95
}
96
96
}
You can’t perform that action at this time.
0 commit comments