Skip to content

Commit 5ebda66

Browse files
committed
Remove :void in test function signatures
1 parent 700457b commit 5ebda66

8 files changed

+8
-8
lines changed

Tests/Test/Constraint/RequestAttributeValueSameTest.php

Lines changed: 1 addition & 1 deletion
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');

Tests/Test/Constraint/ResponseCookieValueSameTest.php

Lines changed: 1 addition & 1 deletion
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'));

Tests/Test/Constraint/ResponseHasCookieTest.php

Lines changed: 1 addition & 1 deletion
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'));

Tests/Test/Constraint/ResponseHasHeaderTest.php

Lines changed: 1 addition & 1 deletion
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));

Tests/Test/Constraint/ResponseHeaderSameTest.php

Lines changed: 1 addition & 1 deletion
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));

Tests/Test/Constraint/ResponseIsRedirectedTest.php

Lines changed: 1 addition & 1 deletion
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

Tests/Test/Constraint/ResponseIsSuccessfulTest.php

Lines changed: 1 addition & 1 deletion
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

Tests/Test/Constraint/ResponseStatusCodeSameTest.php

Lines changed: 1 addition & 1 deletion
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));

0 commit comments

Comments
 (0)