File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
class CI_Email
8
8
{
9
+ public function to (string $ to ): CI_Email
10
+ {
11
+ return $ this ;
12
+ }
9
13
}
Original file line number Diff line number Diff line change 6
6
7
7
class CI_Input
8
8
{
9
- public function method (): string
9
+ public function method (bool $ upper = false ): string
10
10
{
11
11
return 'GET ' ;
12
12
}
13
+
14
+ /**
15
+ * @param mixed $index
16
+ *
17
+ * @return mixed
18
+ */
19
+ public function get ($ index = null , bool $ xss_clean = false )
20
+ {
21
+ return 'GET value ' ;
22
+ }
13
23
}
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function test_getDouble_method_returns_execption(): void
78
78
};
79
79
$ mock = $ this ->getDouble (CI_Input::class, ['method ' => $ ret ]);
80
80
81
- $ mock ->method (' abc ' , ' def ' );
81
+ $ mock ->method ();
82
82
}
83
83
84
84
public function test_getDouble_constructor_param (): void
You can’t perform that action at this time.
0 commit comments