예제 #1
0
 /**
  * @test
  * @expectedException \Prooph\Done\Process\Type\Exception\InvalidTypeException
  * @dataProvider provideInvalidTypes
  */
 public function it_can_not_be_initialized_with_invalid_types($value)
 {
     Unknown::fromNativeValue($value);
 }
예제 #2
0
 /**
  * @param string $valueString
  * @return Type
  */
 public static function fromString($valueString)
 {
     return Unknown::fromNativeValue(json_decode($valueString, true));
 }