1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 05:36:45 +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

@@ -60,7 +60,7 @@ class PHPConsoleHandlerTest extends TestCase
{
return $this->getMockBuilder('PhpConsole\Dispatcher\Debug')
->disableOriginalConstructor()
->setMethods(['dispatchDebug'])
->onlyMethods(['dispatchDebug'])
->setConstructorArgs([$connector, $connector->getDumper()])
->getMock();
}
@@ -69,7 +69,7 @@ class PHPConsoleHandlerTest extends TestCase
{
return $this->getMockBuilder('PhpConsole\Dispatcher\Errors')
->disableOriginalConstructor()
->setMethods(['dispatchError', 'dispatchException'])
->onlyMethods(['dispatchError', 'dispatchException'])
->setConstructorArgs([$connector, $connector->getDumper()])
->getMock();
}
@@ -78,7 +78,7 @@ class PHPConsoleHandlerTest extends TestCase
{
$connector = $this->getMockBuilder('PhpConsole\Connector')
->disableOriginalConstructor()
->setMethods([
->onlyMethods([
'sendMessage',
'onShutDown',
'isActiveClient',