Use short array syntax

[MAILPOET-2090]
This commit is contained in:
Pavel Dohnal
2019-05-20 13:48:48 +02:00
committed by M. Shull
parent 9f16cb6a5f
commit 5da7110eb6
385 changed files with 40133 additions and 40131 deletions

View File

@@ -31,12 +31,12 @@ class KeyCheckWorkerTest extends \MailPoetTest {
function testItReschedulesCheckOnException() {
$worker = Stub::make(
$this->worker,
array(
[
'checkKey' => function () {
throw new \Exception;
},
'reschedule' => Expected::once()
),
'reschedule' => Expected::once(),
],
$this
);
$task = $this->createRunningTask();
@@ -47,10 +47,10 @@ class KeyCheckWorkerTest extends \MailPoetTest {
function testItReschedulesCheckOnError() {
$worker = Stub::make(
$this->worker,
array(
'checkKey' => array('code' => Bridge::CHECK_ERROR_UNAVAILABLE),
'reschedule' => Expected::once()
),
[
'checkKey' => ['code' => Bridge::CHECK_ERROR_UNAVAILABLE],
'reschedule' => Expected::once(),
],
$this
);
$task = $this->createRunningTask();