I was getting a
PHP Notice: Undefined offset: in vendor/elkan/behatformatter/src/Formatter/BehatFormatter.php on line 749
due to the incorrect incrementing of $this->currentExampleCount after every step.
Instead, I have implemented the method onBeforeExampleScenarioTested() to be called before a scenario example is tested. I have moved the setting and incrementing of the currentExampleCount property to this method.
I was getting a
PHP Notice: Undefined offset: in vendor/elkan/behatformatter/src/Formatter/BehatFormatter.php on line 749
due to the incorrect incrementing of$this->currentExampleCount
after every step.Instead, I have implemented the method
onBeforeExampleScenarioTested()
to be called before a scenario example is tested. I have moved the setting and incrementing of thecurrentExampleCount
property to this method.