public function addWriterThrowsExceptionIfElementIsNotAnArrayAndNotAWriter() { $this->workflow->addWriter('invalid'); }