/** * Constructor * * @param array $fixtureConfig * @param InvalidItemException $previous */ public function __construct(array $fixtureConfig, InvalidItemException $previous) { $message = sprintf("%s\n%s", $previous->getMessage(), Yaml::dump(['fixture' => $fixtureConfig, 'item' => $previous->getItem()], 2)); parent::__construct($message); }
/** * Handle step execution warning * * @param StepExecution $stepExecution * @param mixed $element * @param InvalidItemException $e */ protected function handleStepExecutionWarning(StepExecution $stepExecution, $element, InvalidItemException $e) { if ($element instanceof AbstractConfigurableStepElement) { $warningName = $element->getName(); } else { $warningName = get_class($element); } $stepExecution->addWarning($warningName, $e->getMessage(), $e->getMessageParameters(), $e->getItem()); $this->dispatchInvalidItemEvent(get_class($element), $e->getMessage(), $e->getMessageParameters(), $e->getItem()); }
/** * Handle step execution warning * * @param StepExecution $stepExecution * @param mixed $element * @param InvalidItemException $e */ protected function handleStepExecutionWarning(StepExecution $stepExecution, $element, InvalidItemException $e) { $stepExecution->addWarning($e->getMessage(), $e->getMessageParameters(), $e->getItem()); $this->dispatchInvalidItemEvent(get_class($element), $e->getMessage(), $e->getMessageParameters(), $e->getItem()); }