@@ -17,7 +17,7 @@ abstract class TestCase extends BaseTestCase
17
17
/**
18
18
* @throws AMQPProtocolChannelException
19
19
*/
20
- public function setUp (): void
20
+ protected function setUp (): void
21
21
{
22
22
parent ::setUp ();
23
23
@@ -40,17 +40,17 @@ protected function tearDown(): void
40
40
parent ::tearDown ();
41
41
}
42
42
43
- public function testSizeDoesNotThrowExceptionOnUnknownQueue (): void
43
+ public function test_size_does_not_throw_exception_on_unknown_queue (): void
44
44
{
45
45
$ this ->assertEmpty (0 , Queue::size (Str::random ()));
46
46
}
47
47
48
- public function testPopNothing (): void
48
+ public function test_pop_nothing (): void
49
49
{
50
50
$ this ->assertNull (Queue::pop ('foo ' ));
51
51
}
52
52
53
- public function testPushRaw (): void
53
+ public function test_push_raw (): void
54
54
{
55
55
Queue::pushRaw ($ payload = Str::random ());
56
56
@@ -68,9 +68,9 @@ public function testPushRaw(): void
68
68
$ this ->assertSame (0 , Queue::size ());
69
69
}
70
70
71
- public function testPush (): void
71
+ public function test_push (): void
72
72
{
73
- Queue::push (new TestJob () );
73
+ Queue::push (new TestJob );
74
74
75
75
sleep (1 );
76
76
@@ -95,7 +95,7 @@ public function testPush(): void
95
95
$ this ->assertSame (0 , Queue::size ());
96
96
}
97
97
98
- public function testPushAfterCommit (): void
98
+ public function test_push_after_commit (): void
99
99
{
100
100
$ transaction = new DatabaseTransactionsManager ;
101
101
@@ -122,7 +122,7 @@ public function testPushAfterCommit(): void
122
122
$ this ->assertSame (0 , Queue::size ());
123
123
}
124
124
125
- public function testLaterRaw (): void
125
+ public function test_later_raw (): void
126
126
{
127
127
$ payload = Str::random ();
128
128
$ data = [Str::random () => Str::random ()];
@@ -152,9 +152,9 @@ public function testLaterRaw(): void
152
152
$ this ->assertSame (0 , Queue::size ());
153
153
}
154
154
155
- public function testLater (): void
155
+ public function test_later (): void
156
156
{
157
- Queue::later (3 , new TestJob () );
157
+ Queue::later (3 , new TestJob );
158
158
159
159
sleep (1 );
160
160
@@ -179,7 +179,7 @@ public function testLater(): void
179
179
$ this ->assertSame (0 , Queue::size ());
180
180
}
181
181
182
- public function testBulk (): void
182
+ public function test_bulk (): void
183
183
{
184
184
$ count = 100 ;
185
185
$ jobs = [];
@@ -195,9 +195,9 @@ public function testBulk(): void
195
195
$ this ->assertSame ($ count , Queue::size ());
196
196
}
197
197
198
- public function testPushEncrypted (): void
198
+ public function test_push_encrypted (): void
199
199
{
200
- Queue::push (new TestEncryptedJob () );
200
+ Queue::push (new TestEncryptedJob );
201
201
202
202
sleep (1 );
203
203
@@ -222,7 +222,7 @@ public function testPushEncrypted(): void
222
222
$ this ->assertSame (0 , Queue::size ());
223
223
}
224
224
225
- public function testPushEncryptedAfterCommit (): void
225
+ public function test_push_encrypted_after_commit (): void
226
226
{
227
227
$ transaction = new DatabaseTransactionsManager ;
228
228
@@ -249,9 +249,9 @@ public function testPushEncryptedAfterCommit(): void
249
249
$ this ->assertSame (0 , Queue::size ());
250
250
}
251
251
252
- public function testEncryptedLater (): void
252
+ public function test_encrypted_later (): void
253
253
{
254
- Queue::later (3 , new TestEncryptedJob () );
254
+ Queue::later (3 , new TestEncryptedJob );
255
255
256
256
sleep (1 );
257
257
@@ -276,7 +276,7 @@ public function testEncryptedLater(): void
276
276
$ this ->assertSame (0 , Queue::size ());
277
277
}
278
278
279
- public function testEncryptedBulk (): void
279
+ public function test_encrypted_bulk (): void
280
280
{
281
281
$ count = 100 ;
282
282
$ jobs = [];
@@ -292,7 +292,7 @@ public function testEncryptedBulk(): void
292
292
$ this ->assertSame ($ count , Queue::size ());
293
293
}
294
294
295
- public function testReleaseRaw (): void
295
+ public function test_release_raw (): void
296
296
{
297
297
Queue::pushRaw ($ payload = Str::random ());
298
298
@@ -318,9 +318,9 @@ public function testReleaseRaw(): void
318
318
$ this ->assertSame (0 , Queue::size ());
319
319
}
320
320
321
- public function testRelease (): void
321
+ public function test_release (): void
322
322
{
323
- Queue::push (new TestJob () );
323
+ Queue::push (new TestJob );
324
324
325
325
sleep (1 );
326
326
@@ -344,7 +344,7 @@ public function testRelease(): void
344
344
$ this ->assertSame (0 , Queue::size ());
345
345
}
346
346
347
- public function testReleaseWithDelayRaw (): void
347
+ public function test_release_with_delay_raw (): void
348
348
{
349
349
Queue::pushRaw ($ payload = Str::random ());
350
350
@@ -375,9 +375,9 @@ public function testReleaseWithDelayRaw(): void
375
375
$ this ->assertSame (0 , Queue::size ());
376
376
}
377
377
378
- public function testReleaseInThePast (): void
378
+ public function test_release_in_the_past (): void
379
379
{
380
- Queue::push (new TestJob () );
380
+ Queue::push (new TestJob );
381
381
382
382
$ job = Queue::pop ();
383
383
$ job ->release (-3 );
@@ -390,9 +390,9 @@ public function testReleaseInThePast(): void
390
390
$ this ->assertSame (0 , Queue::size ());
391
391
}
392
392
393
- public function testReleaseAndReleaseWithDelayAttempts (): void
393
+ public function test_release_and_release_with_delay_attempts (): void
394
394
{
395
- Queue::push (new TestJob () );
395
+ Queue::push (new TestJob );
396
396
397
397
sleep (1 );
398
398
@@ -417,9 +417,9 @@ public function testReleaseAndReleaseWithDelayAttempts(): void
417
417
$ this ->assertSame (0 , Queue::size ());
418
418
}
419
419
420
- public function testDelete (): void
420
+ public function test_delete (): void
421
421
{
422
- Queue::push (new TestJob () );
422
+ Queue::push (new TestJob );
423
423
424
424
$ job = Queue::pop ();
425
425
@@ -431,9 +431,9 @@ public function testDelete(): void
431
431
$ this ->assertNull (Queue::pop ());
432
432
}
433
433
434
- public function testFailed (): void
434
+ public function test_failed (): void
435
435
{
436
- Queue::push (new TestJob () );
436
+ Queue::push (new TestJob );
437
437
438
438
$ job = Queue::pop ();
439
439
0 commit comments