File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-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,12 @@ public function runTest(string $method, ?array $args = null): void
148
148
}
149
149
150
150
151
+ protected function runTestMethod ($ name , $ params ): void
152
+ {
153
+ [$ this , $ name ](...$ params );
154
+ }
155
+
156
+
151
157
/**
152
158
* @return mixed
153
159
*/
You can’t perform that action at this time.
0 commit comments