Skip to content

Commit 3960ae5

Browse files
authored
Type-hint phpunit setUp() and tearDown() methods (#657)
1 parent e556d35 commit 3960ae5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Tests/Command/CleanCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CleanCommandTest extends \PHPUnit\Framework\TestCase
4444
/**
4545
* {@inheritdoc}
4646
*/
47-
protected function setUp()
47+
protected function setUp(): void
4848
{
4949
$this->accessTokenManager = $this->getMockBuilder(TokenManagerInterface::class)->disableOriginalConstructor()->getMock();
5050
$this->refreshTokenManager = $this->getMockBuilder(TokenManagerInterface::class)->disableOriginalConstructor()->getMock();

Tests/Command/CreateClientCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CreateClientCommandTest extends TestCase
3434
/**
3535
* {@inheritdoc}
3636
*/
37-
protected function setUp()
37+
protected function setUp(): void
3838
{
3939
$this->clientManager = $this->getMockBuilder(ClientManagerInterface::class)->disableOriginalConstructor()->getMock();
4040
$command = new CreateClientCommand($this->clientManager);

Tests/FOSOAuthServerBundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class FOSOAuthServerBundleTest extends \PHPUnit\Framework\TestCase
2323
{
24-
protected function setUp()
24+
protected function setUp(): void
2525
{
2626
parent::setUp();
2727
}

Tests/Form/Type/AuthorizeFormTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AuthorizeFormTypeTest extends TypeTestCase
2727
*/
2828
protected $instance;
2929

30-
protected function setUp()
30+
protected function setUp(): void
3131
{
3232
parent::setUp();
3333

Tests/Functional/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ abstract class TestCase extends WebTestCase
2424
*/
2525
protected static $kernel;
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
$fs = new Filesystem();
3030
$fs->remove(sys_get_temp_dir().'/FOSOAuthServerBundle/');
3131
}
3232

33-
protected function tearDown()
33+
protected function tearDown(): void
3434
{
3535
static::$kernel = null;
3636
}

0 commit comments

Comments
 (0)