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