Skip to content

Commit

Permalink
stop using the deprecated at() PHPUnit matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Aug 12, 2020
1 parent 91bdbf8 commit e5a4288
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,12 @@ public function testSetVary()
public function testDefaultContentType()
{
$headerMock = $this->getMockBuilder('Symfony\Component\HttpFoundation\ResponseHeaderBag')->setMethods(['set'])->getMock();
$headerMock->expects($this->at(0))
$headerMock->expects($this->exactly(2))
->method('set')
->with('Content-Type', 'text/html');
$headerMock->expects($this->at(1))
->method('set')
->with('Content-Type', 'text/html; charset=UTF-8');
->withConsecutive(
['Content-Type', 'text/html'],
['Content-Type', 'text/html; charset=UTF-8']
);

$response = new Response('foo');
$response->headers = $headerMock;
Expand Down

0 comments on commit e5a4288

Please sign in to comment.