Skip to content

Commit c7a9d73

Browse files
authored
Merge pull request #1556 from samsonasik/use-protected-setup
using protected intead of public modifier for setUp() function in tests
2 parents 7a69fae + 70975f1 commit c7a9d73

104 files changed

Lines changed: 104 additions & 104 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

system/Test/CIDatabaseTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function loadDependencies()
151151
*
152152
* @throws ConfigException
153153
*/
154-
public function setUp()
154+
protected function setUp()
155155
{
156156
parent::setUp();
157157

system/Test/CIUnitTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class CIUnitTestCase extends TestCase
6363
*/
6464
protected $configPath = '../application/Config';
6565

66-
public function setUp()
66+
protected function setUp()
6767
{
6868
parent::setUp();
6969

tests/system/API/ResponseTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ResponseTraitTest extends \CIUnitTestCase
1717
*/
1818
protected $formatter;
1919

20-
public function setUp()
20+
protected function setUp()
2121
{
2222
parent::setUp();
2323

tests/system/Autoloader/AutoloaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class AutoloaderTest extends \CIUnitTestCase
1212

1313
//--------------------------------------------------------------------
1414

15-
public function setUp()
15+
protected function setUp()
1616
{
1717
parent::setUp();
1818

tests/system/Autoloader/FileLocatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class FileLocatorTest extends \CIUnitTestCase
1313

1414
//--------------------------------------------------------------------
1515

16-
public function setUp()
16+
protected function setUp()
1717
{
1818
parent::setUp();
1919

tests/system/CLI/CLITest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class CLITest extends \CIUnitTestCase
77

88
private $stream_filter;
99

10-
public function setUp()
10+
protected function setUp()
1111
{
1212
parent::setUp();
1313

tests/system/CLI/CommandRunnerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CommandRunnerTest extends \CIUnitTestCase
1717
protected $logger;
1818
protected $runner;
1919

20-
public function setUp()
20+
protected function setUp()
2121
{
2222
parent::setUp();
2323

tests/system/CLI/ConsoleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ConsoleTest extends \CIUnitTestCase
99

1010
private $stream_filter;
1111

12-
public function setUp()
12+
protected function setUp()
1313
{
1414
parent::setUp();
1515

tests/system/Cache/CacheFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class CacheFactoryTest extends \CIUnitTestCase
66
private $cacheFactory;
77
private $config;
88

9-
public function setUp()
9+
protected function setUp()
1010
{
1111
parent::setUp();
1212

tests/system/Cache/Handlers/DummyHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class DummyHandlerTest extends \CIUnitTestCase
44
{
55
private $dummyHandler;
66

7-
public function setUp()
7+
protected function setUp()
88
{
99
$this->dummyHandler = new DummyHandler();
1010
$this->dummyHandler->initialize();

0 commit comments

Comments
 (0)