File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ protected function setCA():void{
171
171
foreach ($ cafiles as $ file ){
172
172
if (\is_file ($ file ) || (\is_link ($ file ) && \is_file (\readlink ($ file )))){
173
173
$ this ->curl_options [\CURLOPT_CAINFO ] = $ file ;
174
+ $ this ->ca_info = $ file ;
174
175
return ;
175
176
}
176
177
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Class CurlClientNoCATest
4
+ *
5
+ * @filesource CurlClientNoCATest.php
6
+ * @created 28.08.2018
7
+ * @package chillerlan\HTTPTest\Psr18
8
+ * @author smiley <smiley@chillerlan.net>
9
+ * @copyright 2018 smiley
10
+ * @license MIT
11
+ */
12
+
13
+ namespace chillerlan \HTTPTest \Psr18 ;
14
+
15
+ use chillerlan \HTTP \{HTTPOptions , Psr18 \CurlClient };
16
+
17
+ class CurlClientNoCATest extends HTTPClientTestAbstract{
18
+
19
+ protected function setUp ():void {
20
+ $ options = new HTTPOptions ([
21
+ 'ca_info ' => null ,
22
+ 'user_agent ' => $ this ::USER_AGENT ,
23
+ ]);
24
+
25
+ $ this ->http = new CurlClient ($ options );
26
+ }
27
+
28
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Class StreamClientNoCATest
4
+ *
5
+ * @filesource StreamClientNoCATest.php
6
+ * @created 23.02.2019
7
+ * @package chillerlan\HTTPTest\Psr18
8
+ * @author smiley <smiley@chillerlan.net>
9
+ * @copyright 2019 smiley
10
+ * @license MIT
11
+ */
12
+
13
+ namespace chillerlan \HTTPTest \Psr18 ;
14
+
15
+ use chillerlan \HTTP \{HTTPOptions , Psr18 \StreamClient };
16
+
17
+ class StreamClientNoCATest extends HTTPClientTestAbstract{
18
+
19
+ protected function setUp ():void {
20
+ $ options = new HTTPOptions ([
21
+ 'ca_info ' => null ,
22
+ 'user_agent ' => $ this ::USER_AGENT ,
23
+ ]);
24
+
25
+ $ this ->http = new StreamClient ($ options );
26
+ }
27
+
28
+ }
You can’t perform that action at this time.
0 commit comments