@@ -42,7 +42,7 @@ public function testCustomTtl()
4242 $ ttlListener ->useCustomTtl ($ event );
4343 $ response = $ event ->getResponse ();
4444
45- $ this ->assertInstanceOf (' Symfony \\ Component \\ HttpFoundation \\ Response ' , $ response );
45+ $ this ->assertInstanceOf (Response::class , $ response );
4646 $ this ->assertSame ('120 ' , $ response ->headers ->getCacheControlDirective ('s-maxage ' ));
4747 $ this ->assertSame ('60 ' , $ response ->headers ->get (CustomTtlListener::SMAXAGE_BACKUP ));
4848 }
@@ -60,7 +60,7 @@ public function testCustomTtlNoSmaxage()
6060 $ ttlListener ->useCustomTtl ($ event );
6161 $ response = $ event ->getResponse ();
6262
63- $ this ->assertInstanceOf (' Symfony \\ Component \\ HttpFoundation \\ Response ' , $ response );
63+ $ this ->assertInstanceOf (Response::class , $ response );
6464 $ this ->assertSame ('120 ' , $ response ->headers ->getCacheControlDirective ('s-maxage ' ));
6565 $ this ->assertSame ('false ' , $ response ->headers ->get (CustomTtlListener::SMAXAGE_BACKUP ));
6666 }
@@ -79,7 +79,7 @@ public function testCleanup()
7979 $ ttlListener ->cleanResponse ($ event );
8080 $ response = $ event ->getResponse ();
8181
82- $ this ->assertInstanceOf (' Symfony \\ Component \\ HttpFoundation \\ Response ' , $ response );
82+ $ this ->assertInstanceOf (Response::class , $ response );
8383 $ this ->assertTrue ($ response ->headers ->hasCacheControlDirective ('s-maxage ' ));
8484 $ this ->assertSame ('60 ' , $ response ->headers ->getCacheControlDirective ('s-maxage ' ));
8585 $ this ->assertFalse ($ response ->headers ->has ('X-Reverse-Proxy-TTL ' ));
@@ -100,7 +100,7 @@ public function testCleanupNoSmaxage()
100100 $ ttlListener ->cleanResponse ($ event );
101101 $ response = $ event ->getResponse ();
102102
103- $ this ->assertInstanceOf (' Symfony \\ Component \\ HttpFoundation \\ Response ' , $ response );
103+ $ this ->assertInstanceOf (Response::class , $ response );
104104 $ this ->assertFalse ($ response ->headers ->hasCacheControlDirective ('s_maxage ' ));
105105 $ this ->assertFalse ($ response ->headers ->has ('X-Reverse-Proxy-TTL ' ));
106106 $ this ->assertFalse ($ response ->headers ->has (CustomTtlListener::SMAXAGE_BACKUP ));
0 commit comments