Skip to content

Commit

Permalink
fixed setUp()/tearDown() visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko-pagliai committed Dec 18, 2024
1 parent 93bc828 commit 2ecae98
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/TestSuite/DriverTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class DriverTestCase extends TestCase
* Called before every test method
* @return void
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
5 changes: 2 additions & 3 deletions src/TestSuite/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ abstract class TestCase extends BaseTestCase
use BackupTrait;

/**
* Called after every test method
* @return void
* @inheritDoc
*/
public function tearDown(): void
protected function tearDown(): void
{
parent::tearDown();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/BackupTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class BackupTraitTest extends TestCase
/**
* @inheritDoc
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Driver/MysqlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class MysqlTest extends DriverTestCase
* {@inheritDoc}
* @throws \PHPUnit\Framework\MockObject\Exception
*/
public function setUp(): void
protected function setUp(): void
{
if ($this->getConnection()->config()['scheme'] !== 'mysql') {
$this->markTestSkipped('Skipping tests for mysql, current driver is `' . $this->getConnection()->config()['scheme'] . '`');
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Driver/PostgresTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PostgresTest extends DriverTestCase
/**
* {@inheritDoc}

Check warning on line 28 in tests/TestCase/Driver/PostgresTest.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

When inheriting entire doc comment, @inheritdoc must be used instead of {@inheritdoc}.

Check warning on line 28 in tests/TestCase/Driver/PostgresTest.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

When inheriting entire doc comment, @inheritdoc must be used instead of {@inheritdoc}.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Driver/SqliteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SqliteTest extends DriverTestCase
/**
* {@inheritDoc}

Check warning on line 28 in tests/TestCase/Driver/SqliteTest.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

When inheriting entire doc comment, @inheritdoc must be used instead of {@inheritdoc}.

Check warning on line 28 in tests/TestCase/Driver/SqliteTest.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

When inheriting entire doc comment, @inheritdoc must be used instead of {@inheritdoc}.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Utility/BackupExportAndImportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function getAllRecords(): array
/**
* {@inheritDoc}

Check warning on line 70 in tests/TestCase/Utility/BackupExportAndImportTest.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

When inheriting entire doc comment, @inheritdoc must be used instead of {@inheritdoc}.

Check warning on line 70 in tests/TestCase/Utility/BackupExportAndImportTest.php

View workflow job for this annotation

GitHub Actions / Coding Standard & Static Analysis

When inheriting entire doc comment, @inheritdoc must be used instead of {@inheritdoc}.
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Utility/BackupExportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class BackupExportTest extends TestCase
* {@inheritDoc}
* @throws \ReflectionException
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Utility/BackupImportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BackupImportTest extends TestCase
* {@inheritDoc}
* @throws \ReflectionException
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Utility/BackupManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class BackupManagerTest extends TestCase
/**
* @inheritDoc
*/
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 2ecae98

Please sign in to comment.