Skip to content

Commit

Permalink
Replace deprecated setMethods() in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
solventt committed Oct 19, 2021
1 parent 44d3c9c commit 9841374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ResponseEmitterTest.php
Expand Up @@ -112,7 +112,7 @@ public function testRespondIndeterminateLength()
$body = $this
->getMockBuilder(MockStream::class)
->setConstructorArgs([$stream])
->setMethods(['getSize'])
->onlyMethods(['getSize'])
->getMock();
$body->method('getSize')->willReturn(null);

Expand Down

0 comments on commit 9841374

Please sign in to comment.