File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ public function close()
133
133
if (is_resource ($ this ->curl )) {
134
134
curl_close ($ this ->curl );
135
135
}
136
+ $ this ->json_decoder = null ;
136
137
}
137
138
138
139
public function complete ($ callback )
Original file line number Diff line number Diff line change @@ -669,7 +669,8 @@ public function testMultipleCookieResponse()
669
669
$ this ->assertEquals ('cookie1=scrumptious,cookie2=mouthwatering ' , $ test ->curl ->response_headers ['Set-Cookie ' ]);
670
670
}
671
671
672
- public function testDefaultTimeout () {
672
+ public function testDefaultTimeout ()
673
+ {
673
674
$ test = new Test ();
674
675
$ test ->server ('timeout ' , 'GET ' , array (
675
676
'seconds ' => '31 ' ,
@@ -681,7 +682,8 @@ public function testDefaultTimeout() {
681
682
$ this ->assertFalse ($ test ->curl ->http_error );
682
683
}
683
684
684
- public function testTimeoutError () {
685
+ public function testTimeoutError ()
686
+ {
685
687
$ test = new Test ();
686
688
$ test ->curl ->setTimeout (5 );
687
689
$ test ->server ('timeout ' , 'GET ' , array (
@@ -694,7 +696,8 @@ public function testTimeoutError() {
694
696
$ this ->assertFalse ($ test ->curl ->http_error );
695
697
}
696
698
697
- public function testTimeout () {
699
+ public function testTimeout ()
700
+ {
698
701
$ test = new Test ();
699
702
$ test ->curl ->setTimeout (10 );
700
703
$ test ->server ('timeout ' , 'GET ' , array (
You can’t perform that action at this time.
0 commit comments