@@ -27,5 +27,5 @@ |
||
27 | 27 | |
28 | 28 | private $target = RecoverableJobException::class; |
29 | 29 | |
30 | - private $inheritance = [ AbstractJobException::class ]; |
|
30 | + private $inheritance = [AbstractJobException::class]; |
|
31 | 31 | } |
@@ -27,5 +27,5 @@ |
||
27 | 27 | |
28 | 28 | private $target = FatalJobException::class; |
29 | 29 | |
30 | - private $inheritance = [ AbstractJobException::class ]; |
|
30 | + private $inheritance = [AbstractJobException::class]; |
|
31 | 31 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | '@testConstruction' => false, |
32 | 32 | ]; |
33 | 33 | |
34 | - private $inheritance = [ JobExceptionInterface::class, \RuntimeException::class ]; |
|
34 | + private $inheritance = [JobExceptionInterface::class, \RuntimeException::class]; |
|
35 | 35 | |
36 | 36 | public function provideConstructionTestData() |
37 | 37 | { |
@@ -41,12 +41,12 @@ |
||
41 | 41 | private $target = [ |
42 | 42 | MongoWorker::class, |
43 | 43 | 'setupConstructorArgs', |
44 | - '@testInheritance' => [ 'as_reflection' => true ] |
|
44 | + '@testInheritance' => ['as_reflection' => true] |
|
45 | 45 | ]; |
46 | 46 | |
47 | 47 | private $eventsMock; |
48 | 48 | |
49 | - private $inheritance = [ AbstractWorker::class ]; |
|
49 | + private $inheritance = [AbstractWorker::class]; |
|
50 | 50 | |
51 | 51 | private function setupConstructorArgs() |
52 | 52 | { |
@@ -30,5 +30,5 @@ |
||
30 | 30 | 'as_reflection' => true, |
31 | 31 | ]; |
32 | 32 | |
33 | - private $inheritance = [ AbstractWorkerController::class ]; |
|
33 | + private $inheritance = [AbstractWorkerController::class]; |
|
34 | 34 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | private $target = MongoQueueControllerFactory::class; |
34 | 34 | |
35 | - private $inheritance = [ FactoryInterface::class ]; |
|
35 | + private $inheritance = [FactoryInterface::class]; |
|
36 | 36 | |
37 | 37 | public function testCreateService() |
38 | 38 | { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | private $target = MongoQueueListControllerFactory::class; |
32 | 32 | |
33 | - private $inheritance = [ FactoryInterface::class ]; |
|
33 | + private $inheritance = [FactoryInterface::class]; |
|
34 | 34 | |
35 | 35 | public function testCreateService() |
36 | 36 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $queueName = 'test'; |
113 | 113 | $queue = $this->getMockBuilder(MongoQueue::class)->disableOriginalConstructor() |
114 | - ->setMethods(['listing'])->getMock(); |
|
114 | + ->setMethods(['listing'])->getMock(); |
|
115 | 115 | $this->queueManager->expects($this->once())->method('get')->with($queueName)->willReturn($queue); |
116 | 116 | $params = $this->setupParamsMock([ |
117 | 117 | ['queue', null, $queueName], |
@@ -135,13 +135,13 @@ discard block |
||
135 | 135 | $date = new \DateTime(); |
136 | 136 | $date->setTimezone(new \DateTimeZone('UTC')); |
137 | 137 | $jobs = [ |
138 | - [ |
|
139 | - 'job' => $job, |
|
140 | - 'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
141 | - 'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
142 | - 'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
143 | - 'tried' => 10, |
|
144 | - ], |
|
138 | + [ |
|
139 | + 'job' => $job, |
|
140 | + 'created' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
141 | + 'executed' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
142 | + 'scheduled' => new \MongoDb\BSON\UTCDateTime($date->getTimestamp() * 1000), |
|
143 | + 'tried' => 10, |
|
144 | + ], |
|
145 | 145 | ]; |
146 | 146 | |
147 | 147 | $queue->expects($this->once())->method('listing')->with(['limit' => 10, 'status' => 1])->willReturn($jobs); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | ], |
45 | 45 | ]; |
46 | 46 | |
47 | - private $inheritance = [ AbstractConsoleController::class ]; |
|
47 | + private $inheritance = [AbstractConsoleController::class]; |
|
48 | 48 | |
49 | 49 | private function injectConstructorDependencies() |
50 | 50 | { |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | $lineTmpl = '%-20s %s'; |
150 | 150 | $console = $this->target->getConsole(); |
151 | 151 | $console->expects($this->exactly(7))->method('writeLine')->withConsecutive( |
152 | - [ get_class($job) . ' [ test ]' ], |
|
153 | - [ sprintf($lineTmpl, 'Created', $date->format('Y-m-d H:i:s')) ], |
|
154 | - [ sprintf($lineTmpl, 'Executed', $date->format('Y-m-d H:i:s')) ], |
|
155 | - [ sprintf($lineTmpl, 'Scheduled', $date->format('Y-m-d H:i:s')) ], |
|
156 | - [ sprintf($lineTmpl, 'Tries', $jobs[0]['tried']) ] |
|
152 | + [get_class($job).' [ test ]'], |
|
153 | + [sprintf($lineTmpl, 'Created', $date->format('Y-m-d H:i:s'))], |
|
154 | + [sprintf($lineTmpl, 'Executed', $date->format('Y-m-d H:i:s'))], |
|
155 | + [sprintf($lineTmpl, 'Scheduled', $date->format('Y-m-d H:i:s'))], |
|
156 | + [sprintf($lineTmpl, 'Tries', $jobs[0]['tried'])] |
|
157 | 157 | )->willReturn(null); |
158 | 158 | |
159 | 159 | $this->assertEmpty($this->target->listAction()); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | private $target = ProcessId::class; |
29 | 29 | |
30 | - private $inheritance = [ ProcessorInterface::class ]; |
|
30 | + private $inheritance = [ProcessorInterface::class]; |
|
31 | 31 | |
32 | 32 | public function testProcessAddsProcessIdToEventArray() |
33 | 33 | { |