/** * @inheritdoc */ public function unmarshal(Input $input, Output $output) { $output->set($this->fromKey, $input->get($this->toKey)); }
public function testCreateCustomOutputFromInvalidType() { $this->setExpectedException(\InvalidArgumentException::class, 'Invalid output type provided: DateTime'); Output::create(\DateTime::class); }