Skip to content

Commit 090b425

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Remove :void in test function signatures
2 parents 0dc2d55 + 54acc19 commit 090b425

22 files changed

+41
-41
lines changed

src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class BrowserCookieValueSameTest extends TestCase
2323
{
24-
public function testConstraint(): void
24+
public function testConstraint()
2525
{
2626
$browser = $this->getBrowser();
2727
$constraint = new BrowserCookieValueSame('foo', 'bar', false, '/path');

src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class BrowserHasCookieTest extends TestCase
2323
{
24-
public function testConstraint(): void
24+
public function testConstraint()
2525
{
2626
$browser = $this->getBrowser();
2727
$constraint = new BrowserHasCookie('foo', '/path');
@@ -42,7 +42,7 @@ public function testConstraint(): void
4242
$this->fail();
4343
}
4444

45-
public function testConstraintWithWrongPath(): void
45+
public function testConstraintWithWrongPath()
4646
{
4747
$browser = $this->getBrowser();
4848
$constraint = new BrowserHasCookie('foo', '/other');
@@ -57,7 +57,7 @@ public function testConstraintWithWrongPath(): void
5757
$this->fail();
5858
}
5959

60-
public function testConstraintWithWrongDomain(): void
60+
public function testConstraintWithWrongDomain()
6161
{
6262
$browser = $this->getBrowser();
6363
$constraint = new BrowserHasCookie('foo', '/path', 'example.org');

src/Symfony/Component/Console/Tests/Helper/TableTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ protected function getOutputContent(StreamOutput $output)
12631263
return str_replace(\PHP_EOL, "\n", stream_get_contents($output->getStream()));
12641264
}
12651265

1266-
public function testWithColspanAndMaxWith(): void
1266+
public function testWithColspanAndMaxWith()
12671267
{
12681268
$table = new Table($output = $this->getOutputStream());
12691269

src/Symfony/Component/DependencyInjection/Tests/Compiler/ValidateEnvPlaceholdersPassTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function testEnvIsNotUnset()
202202
$this->assertSame($expected, $container->resolveEnvPlaceholders($ext->getConfig()));
203203
}
204204

205-
public function testEmptyEnvWhichCannotBeEmptyForScalarNode(): void
205+
public function testEmptyEnvWhichCannotBeEmptyForScalarNode()
206206
{
207207
$container = new ContainerBuilder();
208208
$container->registerExtension($ext = new EnvExtension());
@@ -215,7 +215,7 @@ public function testEmptyEnvWhichCannotBeEmptyForScalarNode(): void
215215
$this->assertSame($expected, $container->resolveEnvPlaceholders($ext->getConfig()));
216216
}
217217

218-
public function testEmptyEnvWhichCannotBeEmptyForScalarNodeWithValidation(): void
218+
public function testEmptyEnvWhichCannotBeEmptyForScalarNodeWithValidation()
219219
{
220220
$this->expectException('Symfony\Component\Config\Definition\Exception\InvalidConfigurationException');
221221
$this->expectExceptionMessage('The path "env_extension.scalar_node_not_empty_validated" cannot contain an environment variable when empty values are not allowed by definition and are validated.');
@@ -229,7 +229,7 @@ public function testEmptyEnvWhichCannotBeEmptyForScalarNodeWithValidation(): voi
229229
$this->doProcess($container);
230230
}
231231

232-
public function testPartialEnvWhichCannotBeEmptyForScalarNode(): void
232+
public function testPartialEnvWhichCannotBeEmptyForScalarNode()
233233
{
234234
$container = new ContainerBuilder();
235235
$container->registerExtension($ext = new EnvExtension());
@@ -242,7 +242,7 @@ public function testPartialEnvWhichCannotBeEmptyForScalarNode(): void
242242
$this->assertSame($expected, $container->resolveEnvPlaceholders($ext->getConfig()));
243243
}
244244

245-
public function testEnvWithVariableNode(): void
245+
public function testEnvWithVariableNode()
246246
{
247247
$container = new ContainerBuilder();
248248
$container->registerExtension($ext = new EnvExtension());
@@ -266,7 +266,7 @@ public function testEmptyConfigFromMoreThanOneSource()
266266
$this->addToAssertionCount(1);
267267
}
268268

269-
public function testDiscardedEnvInConfig(): void
269+
public function testDiscardedEnvInConfig()
270270
{
271271
$container = new ContainerBuilder();
272272
$container->setParameter('env(BOOLISH)', '1');

src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class CrawlerSelectorAttributeValueSameTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new CrawlerSelectorAttributeValueSame('input[name="username"]', 'value', 'Fabien');
2525
$this->assertTrue($constraint->evaluate(new Crawler('<html><body><form><input type="text" name="username" value="Fabien">'), '', true));

src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class CrawlerSelectorExistsTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new CrawlerSelectorExists('title');
2525
$this->assertTrue($constraint->evaluate(new Crawler('<html><head><title>'), '', true));

src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class CrawlerSelectorTextContainsTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new CrawlerSelectorTextContains('title', 'Foo');
2525
$this->assertTrue($constraint->evaluate(new Crawler('<html><head><title>Foobar'), '', true));

src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class CrawlerSelectorTextSameTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new CrawlerSelectorTextSame('title', 'Foo');
2525
$this->assertTrue($constraint->evaluate(new Crawler('<html><head><title>Foo'), '', true));

src/Symfony/Component/EventDispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testValidEventSubscriber()
6161
$this->assertEquals($expectedCalls, $eventDispatcherDefinition->getMethodCalls());
6262
}
6363

64-
public function testAliasedEventSubscriber(): void
64+
public function testAliasedEventSubscriber()
6565
{
6666
$builder = new ContainerBuilder();
6767
$builder->setParameter('event_dispatcher.event_aliases', [AliasedEvent::class => 'aliased_event']);
@@ -231,7 +231,7 @@ public function testInvokableEventListener()
231231
$this->assertEquals($expectedCalls, $definition->getMethodCalls());
232232
}
233233

234-
public function testAliasedEventListener(): void
234+
public function testAliasedEventListener()
235235
{
236236
$container = new ContainerBuilder();
237237
$eventAliases = [AliasedEvent::class => 'aliased_event'];
@@ -272,7 +272,7 @@ public function testAliasedEventListener(): void
272272
$this->assertEquals($expectedCalls, $definition->getMethodCalls());
273273
}
274274

275-
public function testOmitEventNameOnTypedListener(): void
275+
public function testOmitEventNameOnTypedListener()
276276
{
277277
$container = new ContainerBuilder();
278278
$container->setParameter('event_dispatcher.event_aliases', [AliasedEvent::class => 'aliased_event']);
@@ -305,7 +305,7 @@ public function testOmitEventNameOnTypedListener(): void
305305
$this->assertEquals($expectedCalls, $definition->getMethodCalls());
306306
}
307307

308-
public function testOmitEventNameOnUntypedListener(): void
308+
public function testOmitEventNameOnUntypedListener()
309309
{
310310
$container = new ContainerBuilder();
311311
$container->register('foo', InvokableListenerService::class)->addTag('kernel.event_listener', ['method' => 'onEvent']);
@@ -318,7 +318,7 @@ public function testOmitEventNameOnUntypedListener(): void
318318
$registerListenersPass->process($container);
319319
}
320320

321-
public function testOmitEventNameAndMethodOnUntypedListener(): void
321+
public function testOmitEventNameAndMethodOnUntypedListener()
322322
{
323323
$container = new ContainerBuilder();
324324
$container->register('foo', InvokableListenerService::class)->addTag('kernel.event_listener');
@@ -334,7 +334,7 @@ public function testOmitEventNameAndMethodOnUntypedListener(): void
334334
/**
335335
* @requires PHP 7.2
336336
*/
337-
public function testOmitEventNameAndMethodOnGenericListener(): void
337+
public function testOmitEventNameAndMethodOnGenericListener()
338338
{
339339
$container = new ContainerBuilder();
340340
$container->register('foo', GenericListener::class)->addTag('kernel.event_listener');
@@ -347,7 +347,7 @@ public function testOmitEventNameAndMethodOnGenericListener(): void
347347
$registerListenersPass->process($container);
348348
}
349349

350-
public function testOmitEventNameOnSubscriber(): void
350+
public function testOmitEventNameOnSubscriber()
351351
{
352352
$container = new ContainerBuilder();
353353
$container->register('subscriber', IncompleteSubscriber::class)

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ public function provideEmptyData()
717717
];
718718
}
719719

720-
public function testSubmitStringWithCustomInputFormat(): void
720+
public function testSubmitStringWithCustomInputFormat()
721721
{
722722
$form = $this->factory->create(static::TESTED_TYPE, null, [
723723
'model_timezone' => 'UTC',

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ public function provideEmptyData()
10481048
];
10491049
}
10501050

1051-
public function testSubmitStringWithCustomInputFormat(): void
1051+
public function testSubmitStringWithCustomInputFormat()
10521052
{
10531053
$form = $this->factory->create(static::TESTED_TYPE, null, [
10541054
'model_timezone' => 'UTC',

src/Symfony/Component/Form/Tests/Extension/Core/Type/NumberTypeTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function testStringInputWithIntData(): void
9999
]);
100100
}
101101

102-
public function testDefaultFormattingWithRounding(): void
102+
public function testDefaultFormattingWithRounding()
103103
{
104104
$form = $this->factory->create(static::TESTED_TYPE, null, ['scale' => 0, 'rounding_mode' => \NumberFormatter::ROUND_UP]);
105105
$form->setData('12345.54321');
@@ -139,7 +139,7 @@ public function testSubmitNullWithEmptyDataSetToNull()
139139
$this->assertNull($form->getData());
140140
}
141141

142-
public function testSubmitNumericInput(): void
142+
public function testSubmitNumericInput()
143143
{
144144
$form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'number']);
145145
$form->submit('1,234');
@@ -149,7 +149,7 @@ public function testSubmitNumericInput(): void
149149
$this->assertSame('1,234', $form->getViewData());
150150
}
151151

152-
public function testSubmitNumericInputWithScale(): void
152+
public function testSubmitNumericInputWithScale()
153153
{
154154
$form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'number', 'scale' => 2]);
155155
$form->submit('1,234');
@@ -159,7 +159,7 @@ public function testSubmitNumericInputWithScale(): void
159159
$this->assertSame('1,23', $form->getViewData());
160160
}
161161

162-
public function testSubmitStringInput(): void
162+
public function testSubmitStringInput()
163163
{
164164
$form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'string']);
165165
$form->submit('1,234');
@@ -169,7 +169,7 @@ public function testSubmitStringInput(): void
169169
$this->assertSame('1,234', $form->getViewData());
170170
}
171171

172-
public function testSubmitStringInputWithScale(): void
172+
public function testSubmitStringInputWithScale()
173173
{
174174
$form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'string', 'scale' => 2]);
175175
$form->submit('1,234');

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class RequestAttributeValueSameTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$request = new Request();
2525
$request->attributes->set('foo', 'bar');

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class ResponseCookieValueSameTest extends TestCase
2222
{
23-
public function testConstraint(): void
23+
public function testConstraint()
2424
{
2525
$response = new Response();
2626
$response->headers->setCookie(Cookie::create('foo', 'bar', 0, '/path'));

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class ResponseHasCookieTest extends TestCase
2222
{
23-
public function testConstraint(): void
23+
public function testConstraint()
2424
{
2525
$response = new Response();
2626
$response->headers->setCookie(Cookie::create('foo', 'bar'));

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ResponseHasHeaderTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new ResponseHasHeader('Date');
2525
$this->assertTrue($constraint->evaluate(new Response(), '', true));

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ResponseHeaderSameTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new ResponseHeaderSame('Cache-Control', 'no-cache, private');
2525
$this->assertTrue($constraint->evaluate(new Response(), '', true));

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ResponseIsRedirectedTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new ResponseIsRedirected();
2525

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ResponseIsSuccessfulTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new ResponseIsSuccessful();
2525

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class ResponseStatusCodeSameTest extends TestCase
2121
{
22-
public function testConstraint(): void
22+
public function testConstraint()
2323
{
2424
$constraint = new ResponseStatusCodeSame(200);
2525
$this->assertTrue($constraint->evaluate(new Response(), '', true));

src/Symfony/Component/Mailer/Tests/Transport/Smtp/SmtpTransportTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function testToString()
3131
$this->assertEquals('smtp://127.0.0.1:2525', (string) $t);
3232
}
3333

34-
public function testSendDoesNotPingBelowThreshold(): void
34+
public function testSendDoesNotPingBelowThreshold()
3535
{
3636
$stream = new DummyStream();
3737
$envelope = new Envelope(new Address('[email protected]'), [new Address('[email protected]')]);
@@ -44,7 +44,7 @@ public function testSendDoesNotPingBelowThreshold(): void
4444
$this->assertNotContains("NOOP\r\n", $stream->getCommands());
4545
}
4646

47-
public function testSendPingAfterTransportException(): void
47+
public function testSendPingAfterTransportException()
4848
{
4949
$stream = new DummyStream();
5050
$envelope = new Envelope(new Address('[email protected]'), [new Address('[email protected]')]);
@@ -67,7 +67,7 @@ public function testSendPingAfterTransportException(): void
6767
$this->assertFalse($stream->isClosed());
6868
}
6969

70-
public function testSendDoesPingAboveThreshold(): void
70+
public function testSendDoesPingAboveThreshold()
7171
{
7272
$stream = new DummyStream();
7373
$envelope = new Envelope(new Address('[email protected]'), [new Address('[email protected]')]);

src/Symfony/Component/Serializer/Tests/Extractor/ObjectPropertyListExtractorTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class ObjectPropertyListExtractorTest extends TestCase
1919
{
20-
public function testGetPropertiesWithoutObjectClassResolver(): void
20+
public function testGetPropertiesWithoutObjectClassResolver()
2121
{
2222
$object = new \stdClass();
2323
$context = ['bar' => true];
@@ -35,7 +35,7 @@ public function testGetPropertiesWithoutObjectClassResolver(): void
3535
);
3636
}
3737

38-
public function testGetPropertiesWithObjectClassResolver(): void
38+
public function testGetPropertiesWithObjectClassResolver()
3939
{
4040
$object = new \stdClass();
4141
$classResolver = function ($objectArg) use ($object): string {

0 commit comments

Comments
 (0)