We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91bdbf8 commit e5a4288Copy full SHA for e5a4288
Tests/ResponseTest.php
@@ -461,12 +461,12 @@ public function testSetVary()
461
public function testDefaultContentType()
462
{
463
$headerMock = $this->getMockBuilder('Symfony\Component\HttpFoundation\ResponseHeaderBag')->setMethods(['set'])->getMock();
464
- $headerMock->expects($this->at(0))
+ $headerMock->expects($this->exactly(2))
465
->method('set')
466
- ->with('Content-Type', 'text/html');
467
- $headerMock->expects($this->at(1))
468
- ->method('set')
469
- ->with('Content-Type', 'text/html; charset=UTF-8');
+ ->withConsecutive(
+ ['Content-Type', 'text/html'],
+ ['Content-Type', 'text/html; charset=UTF-8']
+ );
470
471
$response = new Response('foo');
472
$response->headers = $headerMock;
0 commit comments