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