|
1 | 1 | <?php |
2 | 2 |
|
3 | | -declare(strict_types=1); |
4 | | - |
5 | | -/* |
| 3 | +/** |
6 | 4 | * This file is part of the Tarantool Queue package. |
7 | 5 | * |
8 | 6 | * (c) Eugene Leonovich <gen.work@gmail.com> |
|
11 | 9 | * file that was distributed with this source code. |
12 | 10 | */ |
13 | 11 |
|
| 12 | +declare(strict_types=1); |
| 13 | + |
14 | 14 | namespace Tarantool\Queue\Tests\Integration; |
15 | 15 |
|
16 | 16 | use PHPUnit\Framework\TestCase; |
@@ -412,32 +412,32 @@ public function provideFailureCallbackData() : iterable |
412 | 412 | ]; |
413 | 413 | } |
414 | 414 |
|
415 | | - protected static function assertTaskInstance($task) : void |
| 415 | + final protected static function assertTaskInstance($task) : void |
416 | 416 | { |
417 | 417 | self::assertInstanceOf(Task::class, $task); |
418 | 418 | } |
419 | 419 |
|
420 | | - protected static function assertTask(Task $task, int $expectedId, string $expectedState, $expectedData) : void |
| 420 | + final protected static function assertTask(Task $task, int $expectedId, string $expectedState, $expectedData) : void |
421 | 421 | { |
422 | 422 | self::assertSame($expectedId, $task->getId()); |
423 | 423 | self::assertSame($expectedState, $task->getState()); |
424 | 424 | self::assertSame($expectedData, $task->getData()); |
425 | 425 | } |
426 | 426 |
|
427 | | - protected static function assertSameArray(array $expected, array $actual) : void |
| 427 | + final protected static function assertSameArray(array $expected, array $actual) : void |
428 | 428 | { |
429 | 429 | ksort($expected); |
430 | 430 | ksort($actual); |
431 | 431 |
|
432 | 432 | self::assertSame($expected, $actual); |
433 | 433 | } |
434 | 434 |
|
435 | | - protected function getQueue() : Queue |
| 435 | + final protected function getQueue() : Queue |
436 | 436 | { |
437 | 437 | return $this->queue; |
438 | 438 | } |
439 | 439 |
|
440 | | - protected function getTubeType() : string |
| 440 | + final protected function getTubeType() : string |
441 | 441 | { |
442 | 442 | $class = new \ReflectionClass($this); |
443 | 443 | $type = str_replace('QueueTest', '', $class->getShortName()); |
|
0 commit comments