@@ -357,16 +357,16 @@ public function printFail(FailEvent $e)
357
357
$ this ->writeCurrentTest ($ failedTest , false );
358
358
$ this ->output ->writeln ('' );
359
359
360
- // Clickable `editorUrl `:
361
- if (isset ($ this ->options ['editorUrl ' ]) && is_string ($ this ->options ['editorUrl ' ])) {
360
+ // Clickable `editor_url `:
361
+ if (isset ($ this ->options ['editor_url ' ]) && is_string ($ this ->options ['editor_url ' ])) {
362
362
$ filePath = codecept_absolute_path (Descriptor::getTestFileName ($ failedTest ));
363
363
$ line = 1 ;
364
364
foreach ($ fail ->getTrace () as $ trace ) {
365
365
if (isset ($ trace ['file ' ]) && $ filePath === $ trace ['file ' ] && isset ($ trace ['line ' ])) {
366
366
$ line = $ trace ['line ' ];
367
367
}
368
368
}
369
- $ message = str_replace (['%%file%% ' , '%%line%% ' ], [$ filePath , $ line ], $ this ->options ['editorUrl ' ]);
369
+ $ message = str_replace (['%%file%% ' , '%%line%% ' ], [$ filePath , $ line ], $ this ->options ['editor_url ' ]);
370
370
} else {
371
371
$ message = codecept_relative_path (Descriptor::getTestFullName ($ failedTest ));
372
372
}
@@ -507,9 +507,9 @@ public function printExceptionTrace($e)
507
507
continue ;
508
508
}
509
509
510
- // Clickable `editorUrl `:
511
- if (isset ($ this ->options ['editorUrl ' ]) && is_string ($ this ->options ['editorUrl ' ])) {
512
- $ lineString = str_replace (['%%file%% ' , '%%line%% ' ], [$ step ['file ' ], $ step ['line ' ]], $ this ->options ['editorUrl ' ]);
510
+ // Clickable `editor_url `:
511
+ if (isset ($ this ->options ['editor_url ' ]) && is_string ($ this ->options ['editor_url ' ])) {
512
+ $ lineString = str_replace (['%%file%% ' , '%%line%% ' ], [$ step ['file ' ], $ step ['line ' ]], $ this ->options ['editor_url ' ]);
513
513
} else {
514
514
$ lineString = $ step ['file ' ] . ': ' . $ step ['line ' ];
515
515
}
@@ -560,9 +560,9 @@ public function printScenarioTrace(ScenarioDriven $failedTest)
560
560
if (!$ step instanceof Comment) {
561
561
$ filePath = $ step ->getFilePath ();
562
562
if ($ filePath ) {
563
- // Clickable `editorUrl `:
564
- if (isset ($ this ->options ['editorUrl ' ]) && is_string ($ this ->options ['editorUrl ' ])) {
565
- $ lineString = str_replace (['%%file%% ' , '%%line%% ' ], [codecept_absolute_path ($ step ->getFilePath ()), $ step ->getLineNumber ()], $ this ->options ['editorUrl ' ]);
563
+ // Clickable `editor_url `:
564
+ if (isset ($ this ->options ['editor_url ' ]) && is_string ($ this ->options ['editor_url ' ])) {
565
+ $ lineString = str_replace (['%%file%% ' , '%%line%% ' ], [codecept_absolute_path ($ step ->getFilePath ()), $ step ->getLineNumber ()], $ this ->options ['editor_url ' ]);
566
566
} else {
567
567
$ lineString = $ step ->getFilePath () . ': ' . $ step ->getLineNumber ();
568
568
}
0 commit comments