Skip to content

Commit 78da706

Browse files
committed
Remove void return type from test methods
1 parent bc6550e commit 78da706

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/Symfony/Component/Mailer/Tests/Transport/DsnTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ class DsnTest extends TestCase
2020
/**
2121
* @dataProvider fromStringProvider
2222
*/
23-
public function testFromString(string $string, Dsn $dsn): void
23+
public function testFromString(string $string, Dsn $dsn)
2424
{
2525
$this->assertEquals($dsn, Dsn::fromString($string));
2626
}
2727

28-
public function testGetOption(): void
28+
public function testGetOption()
2929
{
3030
$options = ['with_value' => 'some value', 'nullable' => null];
3131
$dsn = new Dsn('smtp', 'example.com', null, null, null, $options);
@@ -38,7 +38,7 @@ public function testGetOption(): void
3838
/**
3939
* @dataProvider invalidDsnProvider
4040
*/
41-
public function testInvalidDsn(string $dsn, string $exceptionMessage): void
41+
public function testInvalidDsn(string $dsn, string $exceptionMessage)
4242
{
4343
$this->expectException(InvalidArgumentException::class);
4444
$this->expectExceptionMessage($exceptionMessage);

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class AmazonSqsIntegrationTest extends TestCase
2323
{
24-
public function testConnectionSendToFifoQueueAndGet(): void
24+
public function testConnectionSendToFifoQueueAndGet()
2525
{
2626
if (!getenv('MESSENGER_SQS_FIFO_QUEUE_DSN')) {
2727
$this->markTestSkipped('The "MESSENGER_SQS_FIFO_QUEUE_DSN" environment variable is required.');
@@ -30,7 +30,7 @@ public function testConnectionSendToFifoQueueAndGet(): void
3030
$this->execute(getenv('MESSENGER_SQS_FIFO_QUEUE_DSN'));
3131
}
3232

33-
public function testConnectionSendAndGet(): void
33+
public function testConnectionSendAndGet()
3434
{
3535
if (!getenv('MESSENGER_SQS_DSN')) {
3636
$this->markTestSkipped('The "MESSENGER_SQS_DSN" environment variable is required.');

src/Symfony/Component/Messenger/Tests/EventListener/StopWorkerOnFailureLimitListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class StopWorkerOnFailureLimitListenerTest extends TestCase
2626
/**
2727
* @dataProvider countProvider
2828
*/
29-
public function testWorkerStopsWhenMaximumCountReached(int $max, bool $shouldStop): void
29+
public function testWorkerStopsWhenMaximumCountReached(int $max, bool $shouldStop)
3030
{
3131
$worker = $this->createMock(Worker::class);
3232
$worker->expects($shouldStop ? $this->atLeastOnce() : $this->never())->method('stop');
@@ -53,7 +53,7 @@ public function countProvider(): iterable
5353
yield [4, false];
5454
}
5555

56-
public function testWorkerLogsMaximumCountReachedWhenLoggerIsGiven(): void
56+
public function testWorkerLogsMaximumCountReachedWhenLoggerIsGiven()
5757
{
5858
$logger = $this->createMock(LoggerInterface::class);
5959
$logger->expects($this->once())->method('info')

src/Symfony/Component/Validator/Tests/Constraints/ExpressionLanguageSyntaxValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function createValidator()
2323
return new ExpressionLanguageSyntaxValidator(new ExpressionLanguage());
2424
}
2525

26-
public function testExpressionValid(): void
26+
public function testExpressionValid()
2727
{
2828
$this->validator->validate('1 + 1', new ExpressionLanguageSyntax([
2929
'message' => 'myMessage',
@@ -33,7 +33,7 @@ public function testExpressionValid(): void
3333
$this->assertNoViolation();
3434
}
3535

36-
public function testExpressionWithoutNames(): void
36+
public function testExpressionWithoutNames()
3737
{
3838
$this->validator->validate('1 + 1', new ExpressionLanguageSyntax([
3939
'message' => 'myMessage',
@@ -42,7 +42,7 @@ public function testExpressionWithoutNames(): void
4242
$this->assertNoViolation();
4343
}
4444

45-
public function testExpressionWithAllowedVariableName(): void
45+
public function testExpressionWithAllowedVariableName()
4646
{
4747
$this->validator->validate('a + 1', new ExpressionLanguageSyntax([
4848
'message' => 'myMessage',
@@ -52,7 +52,7 @@ public function testExpressionWithAllowedVariableName(): void
5252
$this->assertNoViolation();
5353
}
5454

55-
public function testExpressionIsNotValid(): void
55+
public function testExpressionIsNotValid()
5656
{
5757
$this->validator->validate('a + 1', new ExpressionLanguageSyntax([
5858
'message' => 'myMessage',

0 commit comments

Comments
 (0)