mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-03 19:57:41 +02:00
Removed more ['foo' => 'bar'] array notation
This commit is contained in:
@@ -19,7 +19,7 @@ class SyslogUdpHandlerTest extends \PHPUnit_Framework_TestCase
|
|||||||
$handler = new SyslogUdpHandler("local5", "127.0.0.1");
|
$handler = new SyslogUdpHandler("local5", "127.0.0.1");
|
||||||
$handler->setFormatter(new \Monolog\Formatter\ChromePHPFormatter());
|
$handler->setFormatter(new \Monolog\Formatter\ChromePHPFormatter());
|
||||||
|
|
||||||
$socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', ['write'], ['lol', 'lol']);
|
$socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('write'), array('lol', 'lol'));
|
||||||
$socket->expects($this->at(0))
|
$socket->expects($this->at(0))
|
||||||
->method('write')
|
->method('write')
|
||||||
->with("lol", "<172>: ");
|
->with("lol", "<172>: ");
|
||||||
@@ -34,6 +34,6 @@ class SyslogUdpHandlerTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
protected function getRecordWithMessage($msg)
|
protected function getRecordWithMessage($msg)
|
||||||
{
|
{
|
||||||
return ['message' => $msg, 'level' => \Monolog\Logger::WARNING, 'context' => null, 'extra' => [], 'channel' => 'lol'];
|
return array('message' => $msg, 'level' => \Monolog\Logger::WARNING, 'context' => null, 'extra' => array(), 'channel' => 'lol');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,7 @@ class UdpSocketTest extends TestCase
|
|||||||
{
|
{
|
||||||
public function testWeDoNotSplitShortMessages()
|
public function testWeDoNotSplitShortMessages()
|
||||||
{
|
{
|
||||||
$socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', ['send'], ['lol', 'lol']);
|
$socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
|
||||||
|
|
||||||
$socket->expects($this->at(0))
|
$socket->expects($this->at(0))
|
||||||
->method('send')
|
->method('send')
|
||||||
@@ -19,7 +19,7 @@ class UdpSocketTest extends TestCase
|
|||||||
|
|
||||||
public function testWeSplitLongMessages()
|
public function testWeSplitLongMessages()
|
||||||
{
|
{
|
||||||
$socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', ['send'], ['lol', 'lol']);
|
$socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
|
||||||
|
|
||||||
$socket->expects($this->at(1))
|
$socket->expects($this->at(1))
|
||||||
->method('send')
|
->method('send')
|
||||||
@@ -32,7 +32,7 @@ class UdpSocketTest extends TestCase
|
|||||||
|
|
||||||
public function testAllSplitMessagesHasAHeader()
|
public function testAllSplitMessagesHasAHeader()
|
||||||
{
|
{
|
||||||
$socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', ['send'], ['lol', 'lol']);
|
$socket = $this->getMock('\Monolog\Handler\SyslogUdp\UdpSocket', array('send'), array('lol', 'lol'));
|
||||||
|
|
||||||
$socket->expects($this->exactly(5))
|
$socket->expects($this->exactly(5))
|
||||||
->method('send')
|
->method('send')
|
||||||
|
Reference in New Issue
Block a user