コード例 #1
0
ファイル: MapTest.php プロジェクト: edvakf/php-thrift-mapper
 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);
 }