File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,19 @@ public function test_getDouble_returns_consecutive_and_other(): void
71
71
public function test_getDouble_method_returns_execption (): void
72
72
{
73
73
$ this ->expectException (RuntimeException::class);
74
- $ this ->expectExceptionMessage ('I can throw an exception and can use params: abcdef ' );
74
+ $ this ->expectExceptionMessage (
75
+ 'I can throw an exception and can use params: abc1 '
76
+ );
75
77
76
78
$ ret = static function ($ param1 , $ param2 ): void {
77
- throw new RuntimeException ('I can throw an exception and can use params: ' . $ param1 . $ param2 );
79
+ throw new RuntimeException (
80
+ 'I can throw an exception and can use params: '
81
+ . $ param1 . $ param2
82
+ );
78
83
};
79
- $ mock = $ this ->getDouble (Input::class, ['method ' => $ ret ]);
84
+ $ mock = $ this ->getDouble (Input::class, ['get ' => $ ret ]);
80
85
81
- $ mock ->method ( );
86
+ $ mock ->get ( ' abc ' , true );
82
87
}
83
88
84
89
public function test_getDouble_constructor_param (): void
You can’t perform that action at this time.
0 commit comments