Skip to content

Commit e5a4288

Browse files
committed
stop using the deprecated at() PHPUnit matcher
1 parent 91bdbf8 commit e5a4288

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/ResponseTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,12 @@ public function testSetVary()
461461
public function testDefaultContentType()
462462
{
463463
$headerMock = $this->getMockBuilder('Symfony\Component\HttpFoundation\ResponseHeaderBag')->setMethods(['set'])->getMock();
464-
$headerMock->expects($this->at(0))
464+
$headerMock->expects($this->exactly(2))
465465
->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');
466+
->withConsecutive(
467+
['Content-Type', 'text/html'],
468+
['Content-Type', 'text/html; charset=UTF-8']
469+
);
470470

471471
$response = new Response('foo');
472472
$response->headers = $headerMock;

0 commit comments

Comments
 (0)