-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add closure void return type in tests (#1181)
- Loading branch information
1 parent
b8f44e4
commit b50696a
Showing
12 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,7 @@ public function testReplyTo(): void | |
$this->assertNull($m->getReplyTo()); | ||
} | ||
|
||
public function testSetDelayInSeconds() | ||
public function testSetDelayInSeconds(): void | ||
{ | ||
$m = new Message('test', '[email protected]'); | ||
$m->setDelay(100); | ||
|
@@ -123,7 +123,7 @@ public function testSetDelayInSeconds() | |
], $m->getOptions()); | ||
} | ||
|
||
public function testSetDelayInDateInterval() | ||
public function testSetDelayInDateInterval(): void | ||
{ | ||
$m = new Message('test', '[email protected]'); | ||
$m->setDelay(new \DateInterval('PT56S')); | ||
|
@@ -133,7 +133,7 @@ public function testSetDelayInDateInterval() | |
], $m->getOptions()); | ||
} | ||
|
||
public function testSetDelayInDateTime() | ||
public function testSetDelayInDateTime(): void | ||
{ | ||
$m = new Message('test', '[email protected]'); | ||
$m->setDelay(new \DateTimeImmutable('+ 123 second')); | ||
|
@@ -143,7 +143,7 @@ public function testSetDelayInDateTime() | |
], $m->getOptions()); | ||
} | ||
|
||
public function testSetDelayInDateTimeWithPastTime() | ||
public function testSetDelayInDateTimeWithPastTime(): void | ||
{ | ||
$m = new Message('test', '[email protected]'); | ||
$m->setDelay(new \DateTimeImmutable('- 123 second')); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,7 @@ private function deadend() | |
} | ||
} | ||
|
||
function hello() | ||
function hello(): void | ||
{ | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters