示例#1
0
 public function testBadType()
 {
     $this->setExpectedException('\\ThriftMapper\\MapException');
     $ary = ['userMap' => 'Bad!'];
     $insanity = ThriftMapper::map(new Insanity(), $ary);
 }
示例#2
0
 public function testBadType3()
 {
     $this->setExpectedException('\\ThriftMapper\\CoerceException');
     $insanity = new Insanity(['userMap' => [1 => null]]);
     $insanity = ThriftMapper::coerce($insanity);
 }