File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,13 @@ public function runTest(string $method, ?array $args = null): void
117
117
try {
118
118
if ($ info ['throws ' ]) {
119
119
$ e = Assert::error (function () use ($ method , $ params ): void {
120
- [ $ this , $ method ->getName ()](... $ params );
120
+ $ this -> runTestMethod ( $ method ->getName (), $ params );
121
121
}, ...$ throws );
122
122
if ($ e instanceof AssertException) {
123
123
throw $ e ;
124
124
}
125
125
} else {
126
- [ $ this , $ method ->getName ()](... $ params );
126
+ $ this -> runTestMethod ( $ method ->getName (), $ params );
127
127
}
128
128
} catch (\Throwable $ e ) {
129
129
$ this ->handleErrors = false ;
@@ -148,6 +148,11 @@ public function runTest(string $method, ?array $args = null): void
148
148
}
149
149
150
150
151
+ protected function runTestMethod ($ name , $ params ): void {
152
+ [$ this , $ name ](...$ params );
153
+ }
154
+
155
+
151
156
/**
152
157
* @return mixed
153
158
*/
You can’t perform that action at this time.
0 commit comments