File tree Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ final class CodeIgniterTest extends CIUnitTestCase
36
36
protected function setUp (): void
37
37
{
38
38
parent ::setUp ();
39
- Services:: reset ();
39
+ $ this -> resetServices ();
40
40
41
41
$ _SERVER ['SERVER_PROTOCOL ' ] = 'HTTP/1.1 ' ;
42
42
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ final class CommonHelperTest extends CIUnitTestCase
32
32
33
33
protected function setUp (): void
34
34
{
35
- Services:: reset ();
35
+ $ this -> resetServices ();
36
36
parent ::setUp ();
37
37
$ this ->cleanUpDummyHelpers ();
38
38
}
@@ -41,7 +41,7 @@ protected function tearDown(): void
41
41
{
42
42
parent ::tearDown ();
43
43
$ this ->cleanUpDummyHelpers ();
44
- Services:: reset ();
44
+ $ this -> resetServices ();
45
45
}
46
46
47
47
private function createDummyHelpers (): void
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ protected function setUp(): void
64
64
protected function tearDown (): void
65
65
{
66
66
$ _SERVER = $ this ->original ;
67
- Services:: reset ();
67
+ $ this -> resetServices ();
68
68
}
69
69
70
70
public function testCanReplaceFrameworkServices ()
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ final class FiltersTest extends CIUnitTestCase
40
40
protected function setUp (): void
41
41
{
42
42
parent ::setUp ();
43
- Services:: reset ();
43
+ $ this -> resetServices ();
44
44
45
45
$ defaults = [
46
46
'Config ' => APPPATH . 'Config ' ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ protected function setUp(): void
32
32
{
33
33
parent ::setUp ();
34
34
35
- Services:: reset ();
35
+ $ this -> resetServices ();
36
36
$ this ->request = $ this ->getRequest ();
37
37
}
38
38
Original file line number Diff line number Diff line change @@ -861,7 +861,7 @@ public function testSetBadSegmentSilent()
861
861
862
862
public function testBasedNoIndex ()
863
863
{
864
- Services:: reset ();
864
+ $ this -> resetServices ();
865
865
866
866
$ _SERVER ['HTTP_HOST ' ] = 'example.com ' ;
867
867
$ _SERVER ['REQUEST_URI ' ] = '/ci/v4/controller/method ' ;
@@ -888,7 +888,7 @@ public function testBasedNoIndex()
888
888
889
889
public function testBasedWithIndex ()
890
890
{
891
- Services:: reset ();
891
+ $ this -> resetServices ();
892
892
893
893
$ _SERVER ['HTTP_HOST ' ] = 'example.com ' ;
894
894
$ _SERVER ['REQUEST_URI ' ] = '/ci/v4/index.php/controller/method ' ;
@@ -915,7 +915,7 @@ public function testBasedWithIndex()
915
915
916
916
public function testForceGlobalSecureRequests ()
917
917
{
918
- Services:: reset ();
918
+ $ this -> resetServices ();
919
919
920
920
$ _SERVER ['HTTP_HOST ' ] = 'example.com ' ;
921
921
$ _SERVER ['REQUEST_URI ' ] = '/ci/v4/controller/method ' ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ protected function setUp(): void
54
54
{
55
55
parent ::setUp ();
56
56
57
- Services:: reset ();
57
+ $ this -> resetServices ();
58
58
59
59
$ _SERVER ['SERVER_PROTOCOL ' ] = 'HTTP/1.1 ' ;
60
60
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ protected function setUp(): void
48
48
{
49
49
parent ::setUp ();
50
50
51
- Services:: reset ();
51
+ $ this -> resetServices ();
52
52
53
53
$ _SERVER ['SERVER_PROTOCOL ' ] = 'HTTP/1.1 ' ;
54
54
You can’t perform that action at this time.
0 commit comments