22
33namespace Spatie \ResponseCache \Test ;
44
5- use Config ;
65use Illuminate \Http \JsonResponse ;
76use Illuminate \Http \Response ;
7+ use Illuminate \Support \Facades \Config ;
88use Spatie \ResponseCache \Exceptions \CouldNotUnserialize ;
99use Spatie \ResponseCache \Serializers \Serializer ;
1010use Spatie \ResponseCache \Test \Serializers \TestSerializer ;
@@ -33,7 +33,7 @@ public function it_can_serialize_and_unserialize_a_response()
3333 // Instantiate a default serializer
3434 $ responseSerializer = app (Serializer::class);
3535
36- $ testResponse = Response:: create (
36+ $ testResponse = new Response (
3737 $ this ->textContent ,
3838 $ this ->statusCode ,
3939 ['testHeader ' => 'testValue ' ]
@@ -55,15 +55,15 @@ public function it_can_serialize_and_unserialize_a_response()
5555 }
5656
5757 /** @test */
58- public function it_can_customized_serialize_and_unserialize_a_response ()
58+ public function it_can_customize_serialize_and_unserialize_a_response ()
5959 {
6060 // Set config dynamically for test
6161 Config::set ('responsecache.serializer ' , TestSerializer::class);
6262
6363 // Instantiate a custom serializer according to config
6464 $ responseSerializer = app (Serializer::class);
6565
66- $ testResponse = JsonResponse:: create (
66+ $ testResponse = new JsonResponse (
6767 $ this ->jsonContent ,
6868 $ this ->statusCode ,
6969 ['testHeader ' => 'testValue ' ]
0 commit comments