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