Skip to content

Commit f211714

Browse files
committed
test: replace public with private
1 parent 917597d commit f211714

17 files changed

+65
-65
lines changed

tests/system/CLI/ConsoleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
final class ConsoleTest extends CIUnitTestCase
2626
{
2727
/**
28-
* @var DotEnv|mixed
28+
* @var DotEnv
2929
*/
30-
public $env;
30+
private $env;
3131

3232
private $stream_filter;
3333

tests/system/CommonFunctionsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
final class CommonFunctionsTest extends CIUnitTestCase
4545
{
4646
/**
47-
* @var App|mixed
47+
* @var App
4848
*/
49-
public $config;
49+
private $config;
5050

5151
public MockIncomingRequest $request;
5252

tests/system/Config/DotEnvTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
final class DotEnvTest extends CIUnitTestCase
2626
{
2727
/**
28-
* @var mixed|vfsStreamDirectory|null
28+
* @var vfsStreamDirectory|null
2929
*/
30-
public $root;
30+
private $root;
3131

3232
public string $path;
3333
private $fixturesFolder;

tests/system/ControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
final class ControllerTest extends CIUnitTestCase
3535
{
3636
/**
37-
* @var App|mixed
37+
* @var App
3838
*/
39-
public $config;
39+
private $config;
4040

4141
/**
4242
* @var Controller

tests/system/Database/Live/MetadataTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ final class MetadataTest extends CIUnitTestCase
2727
use DatabaseTestTrait;
2828

2929
/**
30-
* @var Forge|mixed
30+
* @var Forge
3131
*/
32-
public $forge;
32+
private $forge;
3333

3434
protected $refresh = true;
3535
protected $seed = CITestSeeder::class;

tests/system/HTTP/ContentSecurityPolicyTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
final class ContentSecurityPolicyTest extends CIUnitTestCase
2929
{
3030
/**
31-
* @var mixed|Response
31+
* @var Response
3232
*/
33-
public $response;
33+
private $response;
3434

3535
/**
36-
* @var \CodeIgniter\HTTP\ContentSecurityPolicy|mixed
36+
* @var \CodeIgniter\HTTP\ContentSecurityPolicy
3737
*/
38-
public $csp;
38+
private $csp;
3939

4040
// Having this method as setUp() doesn't work - can't find Config\App !?
4141
protected function prepare(bool $CSPEnabled = true)

tests/system/HTTP/Files/FileMovingTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
final class FileMovingTest extends CIUnitTestCase
2323
{
2424
/**
25-
* @var mixed|vfsStreamDirectory|null
25+
* @var vfsStreamDirectory|null
2626
*/
27-
public $root;
27+
private $root;
2828

2929
public string $path;
3030

3131
/**
32-
* @var mixed|string
32+
* @var string
3333
*/
34-
public $start;
34+
private $start;
3535

3636
/**
37-
* @var mixed|string
37+
* @var string
3838
*/
39-
public $destination;
39+
private $destination;
4040

4141
protected function setUp(): void
4242
{

tests/system/Helpers/FilesystemHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class FilesystemHelperTest extends CIUnitTestCase
2323
/**
2424
* @var array<string, array<string, mixed[]>>|array<string, array<string, string>>|array<string, mixed>|array<string, mixed[]>|array<string, string>|mixed
2525
*/
26-
public $structure;
26+
private $structure;
2727

2828
protected function setUp(): void
2929
{

tests/system/Images/BaseHandlerTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,24 @@
3232
final class BaseHandlerTest extends CIUnitTestCase
3333
{
3434
/**
35-
* @var mixed|vfsStreamDirectory
35+
* @var vfsStreamDirectory
3636
*/
37-
public $root;
37+
private $root;
3838

3939
/**
40-
* @var mixed|string
40+
* @var string
4141
*/
42-
public $origin;
42+
private $origin;
4343

4444
/**
45-
* @var mixed|string
45+
* @var string
4646
*/
47-
public $start;
47+
private $start;
4848

4949
/**
50-
* @var mixed|string
50+
* @var string
5151
*/
52-
public $path;
52+
private $path;
5353

5454
protected function setUp(): void
5555
{

tests/system/Images/GDHandlerTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,29 @@
3232
final class GDHandlerTest extends CIUnitTestCase
3333
{
3434
/**
35-
* @var mixed|vfsStreamDirectory
35+
* @var vfsStreamDirectory
3636
*/
37-
public $root;
37+
private $root;
3838

3939
/**
40-
* @var mixed|string
40+
* @var string
4141
*/
42-
public $origin;
42+
private $origin;
4343

4444
/**
45-
* @var mixed|string
45+
* @var string
4646
*/
47-
public $start;
47+
private $start;
4848

4949
/**
50-
* @var mixed|string
50+
* @var string
5151
*/
52-
public $path;
52+
private $path;
5353

5454
/**
55-
* @var BaseHandler|mixed
55+
* @var BaseHandler
5656
*/
57-
public $handler;
57+
private $handler;
5858

5959
protected function setUp(): void
6060
{

0 commit comments

Comments
 (0)