mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-30 18:00:17 +02:00
CS fixes
This commit is contained in:
@@ -24,7 +24,7 @@ class DynamoDbHandlerTest extends TestCase
|
||||
}
|
||||
|
||||
$this->client = $this->getMockBuilder('Aws\DynamoDb\DynamoDbClient')
|
||||
->setMethods(array('formatAttributes', '__call'))
|
||||
->setMethods(['formatAttributes', '__call'])
|
||||
->disableOriginalConstructor()->getMock();
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ class DynamoDbHandlerTest extends TestCase
|
||||
{
|
||||
$record = $this->getRecord();
|
||||
$formatter = $this->getMock('Monolog\Formatter\FormatterInterface');
|
||||
$formatted = array('foo' => 1, 'bar' => 2);
|
||||
$formatted = ['foo' => 1, 'bar' => 2];
|
||||
$handler = new DynamoDbHandler($this->client, 'foo');
|
||||
$handler->setFormatter($formatter);
|
||||
|
||||
@@ -65,10 +65,10 @@ class DynamoDbHandlerTest extends TestCase
|
||||
$this->client
|
||||
->expects($this->once())
|
||||
->method('__call')
|
||||
->with('putItem', array(array(
|
||||
->with('putItem', [[
|
||||
'TableName' => 'foo',
|
||||
'Item' => $formatted,
|
||||
)));
|
||||
]]);
|
||||
|
||||
$handler->handle($record);
|
||||
}
|
||||
|
Reference in New Issue
Block a user