@@ -117,7 +117,7 @@ public function verify(ExerciseInterface $exercise, Input $input): ResultAggrega
117
117
$ this ->requireCheck ($ requiredCheck );
118
118
}
119
119
120
- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.start ' , $ exercise , $ input ));
120
+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.start ' , $ context ));
121
121
122
122
$ this ->validateChecks ($ this ->checksToRunBefore , $ exercise );
123
123
$ this ->validateChecks ($ this ->checksToRunAfter , $ exercise );
@@ -130,22 +130,22 @@ public function verify(ExerciseInterface $exercise, Input $input): ResultAggrega
130
130
}
131
131
}
132
132
133
- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.pre.execute ' , $ exercise , $ input ));
133
+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.pre.execute ' , $ context ));
134
134
135
135
try {
136
136
$ this ->results ->add ($ runner ->verify ($ context ));
137
137
} finally {
138
- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.post.execute ' , $ exercise , $ input ));
138
+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.post.execute ' , $ context ));
139
139
}
140
140
141
141
foreach ($ this ->checksToRunAfter as $ check ) {
142
142
$ this ->results ->add ($ check ->check ($ context ));
143
143
}
144
144
145
- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.post.check ' , $ exercise , $ input ));
145
+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.post.check ' , $ context ));
146
146
$ exercise ->tearDown ();
147
147
148
- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.finish ' , $ exercise , $ input ));
148
+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.finish ' , $ context ));
149
149
return $ this ->results ;
150
150
}
151
151
@@ -173,14 +173,14 @@ public function run(ExerciseInterface $exercise, Input $input, OutputInterface $
173
173
throw CouldNotRunException::fromFailure ($ result );
174
174
}
175
175
176
- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('run.start ' , $ exercise , $ input ));
176
+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('run.start ' , $ context ));
177
177
178
178
try {
179
179
$ exitStatus = $ this ->runnerManager
180
180
->getRunner ($ exercise )
181
181
->run ($ context , $ output );
182
182
} finally {
183
- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('run.finish ' , $ exercise , $ input ));
183
+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('run.finish ' , $ context ));
184
184
}
185
185
186
186
return $ exitStatus ;
0 commit comments