コード例 #1
0
 /**
  * @inheritdoc
  */
 public function unmarshal(Input $input, Output $output)
 {
     $output->set($this->fromKey, $input->get($this->toKey));
 }
コード例 #2
0
ファイル: InputTest.php プロジェクト: sparkcentral/marshaller
 public function testCreateInputFailsOnInvalidCustomInput()
 {
     $this->setExpectedException(\InvalidArgumentException::class, 'Invalid input data type provided: object');
     Input::create(new \DateTime());
 }