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