Skip to content

Commit e0262b0

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Use ::class keyword when possible
2 parents 5af71ab + 25f2061 commit e0262b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/HttpBrowserTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testMultiPartRequestWithSingleFile()
7373
->method('request')
7474
->with('POST', 'http://example.com/', $this->callback(function ($options) {
7575
$this->assertStringContainsString('Content-Type: multipart/form-data', implode('', $options['headers']));
76-
$this->assertInstanceOf('\Generator', $options['body']);
76+
$this->assertInstanceOf(\Generator::class, $options['body']);
7777
$this->assertStringContainsString('my_file', implode('', iterator_to_array($options['body'])));
7878

7979
return true;
@@ -183,7 +183,7 @@ protected function expectClientToSendRequestWithFiles(HttpClientInterface $clien
183183
->method('request')
184184
->with('POST', 'http://example.com/', $this->callback(function ($options) use ($fileContents) {
185185
$this->assertStringContainsString('Content-Type: multipart/form-data', implode('', $options['headers']));
186-
$this->assertInstanceOf('\Generator', $options['body']);
186+
$this->assertInstanceOf(\Generator::class, $options['body']);
187187
$body = implode('', iterator_to_array($options['body'], false));
188188
foreach ($fileContents as $content) {
189189
$this->assertStringContainsString($content, $body);
@@ -201,7 +201,7 @@ protected function expectClientToNotSendRequestWithFiles(HttpClientInterface $cl
201201
->method('request')
202202
->with('POST', 'http://example.com/', $this->callback(function ($options) use ($fileContents) {
203203
$this->assertStringContainsString('Content-Type: multipart/form-data', implode('', $options['headers']));
204-
$this->assertInstanceOf('\Generator', $options['body']);
204+
$this->assertInstanceOf(\Generator::class, $options['body']);
205205
$body = implode('', iterator_to_array($options['body'], false));
206206
foreach ($fileContents as $content) {
207207
$this->assertStringNotContainsString($content, $body);

0 commit comments

Comments
 (0)