1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-01 10:50:21 +02:00

Deprecated setMethods() usages moving to onlyMethods()

This commit is contained in:
Victor Pryazhnikov
2021-02-27 14:47:59 +03:00
parent c1971982c3
commit cdba0c5693
21 changed files with 30 additions and 30 deletions

View File

@@ -22,7 +22,7 @@ class UdpSocketTest extends TestCase
public function testWeDoNotTruncateShortMessages()
{
$socket = $this->getMockBuilder('Monolog\Handler\SyslogUdp\UdpSocket')
->setMethods(['send'])
->onlyMethods(['send'])
->setConstructorArgs(['lol'])
->getMock();
@@ -36,7 +36,7 @@ class UdpSocketTest extends TestCase
public function testLongMessagesAreTruncated()
{
$socket = $this->getMockBuilder('Monolog\Handler\SyslogUdp\UdpSocket')
->setMethods(['send'])
->onlyMethods(['send'])
->setConstructorArgs(['lol'])
->getMock();