Skip to content

Commit 1eabf2b

Browse files
Masatoshi OgiwaraMasatoshi Ogiwara
authored andcommitted
feat: add-return-type-into-test
1 parent e563187 commit 1eabf2b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/TestCase/Job/MessageTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
/**
@@ -14,6 +15,7 @@
1415
* @since 0.1.0
1516
* @license https://opensource.org/licenses/MIT MIT License
1617
*/
18+
1719
namespace Cake\Queue\Test\TestCase\Job;
1820

1921
use Cake\Queue\Job\Message;
@@ -31,7 +33,7 @@ class MessageTest extends TestCase
3133
*
3234
* @return void
3335
*/
34-
public function testConstructorAndGetters()
36+
public function testConstructorAndGetters(): void
3537
{
3638
$callable = ['TestApp\WelcomeMailer', 'welcome'];
3739
$time = 'sample data ' . time();
@@ -69,7 +71,7 @@ public function testConstructorAndGetters()
6971
*
7072
* @return void
7173
*/
72-
public function testLegacyArguments()
74+
public function testLegacyArguments(): void
7375
{
7476
$callable = ['TestApp\WelcomeMailer', 'welcome'];
7577
$args = [
@@ -98,7 +100,7 @@ public function testLegacyArguments()
98100
*
99101
* @return void
100102
*/
101-
public function testGetCallableInvalidClass()
103+
public function testGetCallableInvalidClass(): void
102104
{
103105
$parsedBody = [
104106
'class' => ['Trash', 'trash'],
@@ -120,7 +122,7 @@ public function testGetCallableInvalidClass()
120122
*
121123
* @return void
122124
*/
123-
public function testGetCallableInvalidType()
125+
public function testGetCallableInvalidType(): void
124126
{
125127
$parsedBody = [
126128
'class' => ['TestApp\WelcomeMailer', 'trash', 'oops'],

0 commit comments

Comments
 (0)