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 @@ -617,20 +617,20 @@ public function testSetCache()
617
617
618
618
$ options = ['etag ' => '"whatever" ' ];
619
619
$ response ->setCache ($ options );
620
- $ this ->assertEquals ($ response ->getEtag (), ' "whatever" ' );
620
+ $ this ->assertEquals (' "whatever" ' , $ response ->getEtag ());
621
621
622
622
$ now = $ this ->createDateTimeNow ();
623
623
$ options = ['last_modified ' => $ now ];
624
624
$ response ->setCache ($ options );
625
- $ this ->assertEquals ($ response -> getLastModified ()-> getTimestamp (), $ now ->getTimestamp ());
625
+ $ this ->assertEquals ($ now -> getTimestamp (), $ response -> getLastModified () ->getTimestamp ());
626
626
627
627
$ options = ['max_age ' => 100 ];
628
628
$ response ->setCache ($ options );
629
- $ this ->assertEquals ($ response ->getMaxAge (), 100 );
629
+ $ this ->assertEquals (100 , $ response ->getMaxAge ());
630
630
631
631
$ options = ['s_maxage ' => 200 ];
632
632
$ response ->setCache ($ options );
633
- $ this ->assertEquals ($ response ->getMaxAge (), 200 );
633
+ $ this ->assertEquals (200 , $ response ->getMaxAge ());
634
634
635
635
$ this ->assertTrue ($ response ->headers ->hasCacheControlDirective ('public ' ));
636
636
$ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('private ' ));
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function testRead()
86
86
->method ('findOne ' )
87
87
->willReturnCallback (function ($ criteria ) use ($ testTimeout ) {
88
88
$ this ->assertArrayHasKey ($ this ->options ['id_field ' ], $ criteria );
89
- $ this ->assertEquals ($ criteria [$ this ->options ['id_field ' ]], ' foo ' );
89
+ $ this ->assertEquals (' foo ' , $ criteria [$ this ->options ['id_field ' ]]);
90
90
91
91
$ this ->assertArrayHasKey ($ this ->options ['expiry_field ' ], $ criteria );
92
92
$ this ->assertArrayHasKey ('$gte ' , $ criteria [$ this ->options ['expiry_field ' ]]);
Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ public function testClear()
83
83
$ _SESSION ['drak ' ] = 'loves symfony ' ;
84
84
$ storage ->getBag ('attributes ' )->set ('symfony ' , 'greatness ' );
85
85
$ key = $ storage ->getBag ('attributes ' )->getStorageKey ();
86
- $ this ->assertEquals ($ _SESSION [ $ key ], [ 'symfony ' => 'greatness ' ]);
87
- $ this ->assertEquals ($ _SESSION ['drak ' ], ' loves symfony ' );
86
+ $ this ->assertEquals ([ 'symfony ' => 'greatness ' ], $ _SESSION [ $ key ]);
87
+ $ this ->assertEquals (' loves symfony ' , $ _SESSION ['drak ' ]);
88
88
$ storage ->clear ();
89
- $ this ->assertEquals ($ _SESSION [ $ key ], [ ]);
90
- $ this ->assertEquals ($ _SESSION ['drak ' ], ' loves symfony ' );
89
+ $ this ->assertEquals ([ ], $ _SESSION [ $ key ]);
90
+ $ this ->assertEquals (' loves symfony ' , $ _SESSION ['drak ' ]);
91
91
}
92
92
}
You can’t perform that action at this time.
0 commit comments