Skip to content

Commit

Permalink
refactor: set setUp() method modifier protected on tests (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Jan 10, 2025
1 parent 88bb081 commit 75c7505
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

final class FactoryTest extends TestCase
{
public function tearDown(): void
protected function tearDown(): void
{
if ((int)session_status() === PHP_SESSION_ACTIVE) {
session_abort();
Expand Down
4 changes: 2 additions & 2 deletions tests/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class SessionTest extends TestCase
{
private SessionFactory $factory;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand All @@ -37,7 +37,7 @@ public function setUp(): void
]), $this->container);
}

public function tearDown(): void
protected function tearDown(): void
{
if ((int)session_status() === PHP_SESSION_ACTIVE) {
session_abort();
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
{
protected Container $container;

public function setUp(): void
protected function setUp(): void
{
$options = new Options();
$options->checkScope = false;
Expand Down

0 comments on commit 75c7505

Please sign in to comment.