aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/LoggerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/LoggerTest.php')
-rw-r--r--tests/lib/LoggerTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lib/LoggerTest.php b/tests/lib/LoggerTest.php
index fa4e481ac48..5ed7b4c9b38 100644
--- a/tests/lib/LoggerTest.php
+++ b/tests/lib/LoggerTest.php
@@ -37,9 +37,9 @@ class LoggerTest extends TestCase implements IWriter {
public function testInterpolation() {
$logger = $this->logger;
- $logger->warning('{Message {nothing} {user} {foo.bar} a}', array('user' => 'Bob', 'foo.bar' => 'Bar'));
+ $logger->warning('{Message {nothing} {user} {foo.bar} a}', ['user' => 'Bob', 'foo.bar' => 'Bar']);
- $expected = array('2 {Message {nothing} Bob Bar a}');
+ $expected = ['2 {Message {nothing} Bob Bar a}'];
$this->assertEquals($expected, $this->getLogs());
}
@@ -96,7 +96,7 @@ class LoggerTest extends TestCase implements IWriter {
$this->logger->logException($e);
$logLines = $this->getLogs();
- foreach($logLines as $logLine) {
+ foreach ($logLines as $logLine) {
if (is_array($logLine)) {
$logLine = json_encode($logLine);
}
@@ -118,7 +118,7 @@ class LoggerTest extends TestCase implements IWriter {
$this->logger->logException($e);
$logLines = $this->getLogs();
- foreach($logLines as $logLine) {
+ foreach ($logLines as $logLine) {
if (is_array($logLine)) {
$logLine = json_encode($logLine);
}
@@ -140,7 +140,7 @@ class LoggerTest extends TestCase implements IWriter {
$this->logger->logException($e);
$logLines = $this->getLogs();
- foreach($logLines as $logLine) {
+ foreach ($logLines as $logLine) {
if (is_array($logLine)) {
$logLine = json_encode($logLine);
}
@@ -162,7 +162,7 @@ class LoggerTest extends TestCase implements IWriter {
$this->logger->logException($e);
$logLines = $this->getLogs();
- foreach($logLines as $logLine) {
+ foreach ($logLines as $logLine) {
if (is_array($logLine)) {
$logLine = json_encode($logLine);
}
@@ -176,7 +176,7 @@ class LoggerTest extends TestCase implements IWriter {
* @dataProvider userAndPasswordData
*/
public function testDetectclosure(string $user, string $password): void {
- $a = function($user, $password) {
+ $a = function ($user, $password) {
throw new \Exception('test');
};
$this->registry->expects($this->once())
@@ -189,7 +189,7 @@ class LoggerTest extends TestCase implements IWriter {
}
$logLines = $this->getLogs();
- foreach($logLines as $logLine) {
+ foreach ($logLines as $logLine) {
if (is_array($logLine)) {
$logLine = json_encode($logLine);
}