@@ -117,7 +117,7 @@ public function verify(ExerciseInterface $exercise, Input $input): ResultAggrega
117117 $ this ->requireCheck ($ requiredCheck );
118118 }
119119
120- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.start ' , $ exercise , $ input ));
120+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.start ' , $ context ));
121121
122122 $ this ->validateChecks ($ this ->checksToRunBefore , $ exercise );
123123 $ this ->validateChecks ($ this ->checksToRunAfter , $ exercise );
@@ -130,22 +130,22 @@ public function verify(ExerciseInterface $exercise, Input $input): ResultAggrega
130130 }
131131 }
132132
133- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.pre.execute ' , $ exercise , $ input ));
133+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.pre.execute ' , $ context ));
134134
135135 try {
136136 $ this ->results ->add ($ runner ->verify ($ context ));
137137 } finally {
138- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.post.execute ' , $ exercise , $ input ));
138+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.post.execute ' , $ context ));
139139 }
140140
141141 foreach ($ this ->checksToRunAfter as $ check ) {
142142 $ this ->results ->add ($ check ->check ($ context ));
143143 }
144144
145- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.post.check ' , $ exercise , $ input ));
145+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.post.check ' , $ context ));
146146 $ exercise ->tearDown ();
147147
148- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.finish ' , $ exercise , $ input ));
148+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('verify.finish ' , $ context ));
149149 return $ this ->results ;
150150 }
151151
@@ -173,14 +173,14 @@ public function run(ExerciseInterface $exercise, Input $input, OutputInterface $
173173 throw CouldNotRunException::fromFailure ($ result );
174174 }
175175
176- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('run.start ' , $ exercise , $ input ));
176+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('run.start ' , $ context ));
177177
178178 try {
179179 $ exitStatus = $ this ->runnerManager
180180 ->getRunner ($ exercise )
181181 ->run ($ context , $ output );
182182 } finally {
183- $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('run.finish ' , $ exercise , $ input ));
183+ $ this ->eventDispatcher ->dispatch (new ExerciseRunnerEvent ('run.finish ' , $ context ));
184184 }
185185
186186 return $ exitStatus ;
0 commit comments