@@ -14,7 +14,7 @@ class TestDoubleTest extends TestCase
14
14
public function test_getDouble_method_named_method (): void
15
15
{
16
16
$ expected = 'DELETE ' ;
17
- $ mock = $ this ->getDouble (CI_Input ::class, ['method ' => $ expected ]);
17
+ $ mock = $ this ->getDouble (Input ::class, ['method ' => $ expected ]);
18
18
19
19
$ actual = $ mock ->method ();
20
20
@@ -25,7 +25,7 @@ public function test_getDouble_method_returns_consecutive(): void
25
25
{
26
26
$ returns = ['GET ' , 'PUT ' , 'DELETE ' ];
27
27
$ mock = $ this ->getDouble (
28
- CI_Input ::class,
28
+ Input ::class,
29
29
[
30
30
['method ' => $ returns ],
31
31
]
@@ -45,7 +45,7 @@ public function test_getDouble_returns_consecutive_and_other(): void
45
45
{
46
46
$ returns = ['GET ' , 'PUT ' , 'DELETE ' ];
47
47
$ mock = $ this ->getDouble (
48
- CI_Input ::class,
48
+ Input ::class,
49
49
[
50
50
'get ' => [],
51
51
['method ' => $ returns ],
@@ -76,7 +76,7 @@ public function test_getDouble_method_returns_execption(): void
76
76
$ ret = static function ($ param1 , $ param2 ): void {
77
77
throw new RuntimeException ('I can throw an exception and can use params: ' . $ param1 . $ param2 );
78
78
};
79
- $ mock = $ this ->getDouble (CI_Input ::class, ['method ' => $ ret ]);
79
+ $ mock = $ this ->getDouble (Input ::class, ['method ' => $ ret ]);
80
80
81
81
$ mock ->method ();
82
82
}
@@ -97,7 +97,7 @@ public function test_getDouble_constructor_param(): void
97
97
98
98
public function test_getDobule_method_returns_phpunit_stub (): void
99
99
{
100
- $ mock = $ this ->getDouble (CI_Email ::class, ['to ' => $ this ->returnSelf ()]);
100
+ $ mock = $ this ->getDouble (Email ::class, ['to ' => $ this ->returnSelf ()]);
101
101
$ test = $ mock ->to ('test@example.com ' );
102
102
103
103
$ this ->assertEquals ($ mock , $ test );
@@ -106,7 +106,7 @@ public function test_getDobule_method_returns_phpunit_stub(): void
106
106
public function test_verifyInvokedOnce_with_params (): void
107
107
{
108
108
$ expected = 'DELETE ' ;
109
- $ mock = $ this ->getDouble (CI_Input ::class, ['method ' => $ expected ]);
109
+ $ mock = $ this ->getDouble (Input ::class, ['method ' => $ expected ]);
110
110
111
111
$ this ->verifyInvokedOnce ($ mock , 'method ' , [true ]);
112
112
@@ -116,7 +116,7 @@ public function test_verifyInvokedOnce_with_params(): void
116
116
public function test_verifyInvokedOnce_without_params (): void
117
117
{
118
118
$ expected = 'DELETE ' ;
119
- $ mock = $ this ->getDouble (CI_Input ::class, ['method ' => $ expected ]);
119
+ $ mock = $ this ->getDouble (Input ::class, ['method ' => $ expected ]);
120
120
121
121
$ this ->verifyInvokedOnce ($ mock , 'method ' );
122
122
@@ -126,7 +126,7 @@ public function test_verifyInvokedOnce_without_params(): void
126
126
public function test_verifyInvoked_once (): void
127
127
{
128
128
$ expected = 'DELETE ' ;
129
- $ mock = $ this ->getDouble (CI_Input ::class, ['method ' => $ expected ]);
129
+ $ mock = $ this ->getDouble (Input ::class, ['method ' => $ expected ]);
130
130
131
131
$ this ->verifyInvoked ($ mock , 'method ' );
132
132
@@ -136,7 +136,7 @@ public function test_verifyInvoked_once(): void
136
136
public function test_verifyInvoked_twice (): void
137
137
{
138
138
$ expected = 'DELETE ' ;
139
- $ mock = $ this ->getDouble (CI_Input ::class, ['method ' => $ expected ]);
139
+ $ mock = $ this ->getDouble (Input ::class, ['method ' => $ expected ]);
140
140
141
141
$ this ->verifyInvoked ($ mock , 'method ' );
142
142
@@ -147,7 +147,7 @@ public function test_verifyInvoked_twice(): void
147
147
public function test_verifyInvokedMultipleTimes (): void
148
148
{
149
149
$ expected = 'DELETE ' ;
150
- $ mock = $ this ->getDouble (CI_Input ::class, ['method ' => $ expected ]);
150
+ $ mock = $ this ->getDouble (Input ::class, ['method ' => $ expected ]);
151
151
152
152
$ this ->verifyInvokedMultipleTimes ($ mock , 'method ' , 3 );
153
153
@@ -159,7 +159,7 @@ public function test_verifyInvokedMultipleTimes(): void
159
159
public function test_verifyNeverInvoked (): void
160
160
{
161
161
$ expected = 'DELETE ' ;
162
- $ mock = $ this ->getDouble (CI_Input ::class, ['method ' => $ expected ]);
162
+ $ mock = $ this ->getDouble (Input ::class, ['method ' => $ expected ]);
163
163
164
164
$ this ->verifyNeverInvoked ($ mock , 'method ' );
165
165
}
0 commit comments