Skip to content

Commit

Permalink
Remove :void in test function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 18, 2020
1 parent 700457b commit 5ebda66
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Tests/Test/Constraint/RequestAttributeValueSameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class RequestAttributeValueSameTest extends TestCase
{
public function testConstraint(): void
public function testConstraint()
{
$request = new Request();
$request->attributes->set('foo', 'bar');
Expand Down
2 changes: 1 addition & 1 deletion Tests/Test/Constraint/ResponseCookieValueSameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class ResponseCookieValueSameTest extends TestCase
{
public function testConstraint(): void
public function testConstraint()
{
$response = new Response();
$response->headers->setCookie(Cookie::create('foo', 'bar', 0, '/path'));
Expand Down
2 changes: 1 addition & 1 deletion Tests/Test/Constraint/ResponseHasCookieTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class ResponseHasCookieTest extends TestCase
{
public function testConstraint(): void
public function testConstraint()
{
$response = new Response();
$response->headers->setCookie(Cookie::create('foo', 'bar'));
Expand Down
2 changes: 1 addition & 1 deletion Tests/Test/Constraint/ResponseHasHeaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class ResponseHasHeaderTest extends TestCase
{
public function testConstraint(): void
public function testConstraint()
{
$constraint = new ResponseHasHeader('Date');
$this->assertTrue($constraint->evaluate(new Response(), '', true));
Expand Down
2 changes: 1 addition & 1 deletion Tests/Test/Constraint/ResponseHeaderSameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class ResponseHeaderSameTest extends TestCase
{
public function testConstraint(): void
public function testConstraint()
{
$constraint = new ResponseHeaderSame('Cache-Control', 'no-cache, private');
$this->assertTrue($constraint->evaluate(new Response(), '', true));
Expand Down
2 changes: 1 addition & 1 deletion Tests/Test/Constraint/ResponseIsRedirectedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class ResponseIsRedirectedTest extends TestCase
{
public function testConstraint(): void
public function testConstraint()
{
$constraint = new ResponseIsRedirected();

Expand Down
2 changes: 1 addition & 1 deletion Tests/Test/Constraint/ResponseIsSuccessfulTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class ResponseIsSuccessfulTest extends TestCase
{
public function testConstraint(): void
public function testConstraint()
{
$constraint = new ResponseIsSuccessful();

Expand Down
2 changes: 1 addition & 1 deletion Tests/Test/Constraint/ResponseStatusCodeSameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class ResponseStatusCodeSameTest extends TestCase
{
public function testConstraint(): void
public function testConstraint()
{
$constraint = new ResponseStatusCodeSame(200);
$this->assertTrue($constraint->evaluate(new Response(), '', true));
Expand Down

0 comments on commit 5ebda66

Please sign in to comment.