Пример #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);
 }