File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 24
24
"php" : " ^7.2" ,
25
25
"ext-json" : " *" ,
26
26
"php-http/client-implementation" : " ^1.0" ,
27
- "php-http/httplug" : " ^1.0" ,
27
+ "php-http/httplug" : " ^1.0|^2.0 " ,
28
28
"php-http/message-factory" : " ^1.0" ,
29
29
"psr/http-message" : " ^1.0"
30
30
},
31
31
"require-dev" : {
32
- "guzzlehttp/psr7" : " ^1.4" ,
33
32
"jakub-onderka/php-parallel-lint" : " ^1.0" ,
34
33
"phpmd/phpmd" : " ^2.1.2" ,
35
34
"phpunit/phpunit" : " ^8.0" ,
36
- "php-http/curl-client" : " ^1.7 " ,
35
+ "php-http/curl-client" : " ^2.0 " ,
37
36
"squizlabs/php_codesniffer" : " ^3.4" ,
38
37
"swiftmailer/swiftmailer" : " ^6.2" ,
39
38
"phpstan/phpstan" : " ^0.11" ,
40
39
"pdepend/pdepend" : " ^2.5" ,
41
- "maglnet/composer-require-checker" : " ^2.0"
40
+ "maglnet/composer-require-checker" : " ^2.0" ,
41
+ "nyholm/psr7" : " ^1.2"
42
42
}
43
43
}
Original file line number Diff line number Diff line change 6
6
use Generator ;
7
7
use Http \Client \Curl \Client ;
8
8
use Http \Message \MessageFactory \GuzzleMessageFactory ;
9
+ use Nyholm \Psr7 \Factory \HttplugFactory ;
9
10
use PHPUnit \Framework \TestCase ;
10
11
use rpkamp \Mailhog \MailhogClient ;
11
12
use rpkamp \Mailhog \Message \Mime \Attachment ;
@@ -30,7 +31,7 @@ class MailhogClientTest extends TestCase
30
31
31
32
public function setUp (): void
32
33
{
33
- $ this ->client = new MailhogClient (new Client (), new GuzzleMessageFactory (), $ _ENV ['mailhog_api_uri ' ]);
34
+ $ this ->client = new MailhogClient (new Client (), new HttplugFactory (), $ _ENV ['mailhog_api_uri ' ]);
34
35
$ this ->client ->purgeMessages ();
35
36
}
36
37
You can’t perform that action at this time.
0 commit comments