/** * @expectedException PHPUnit_Framework_Error */ public function testRepeatedFieldWrongRepeatedTypeFail() { $m = new TestMessage(); $repeated_int32 = new RepeatedField(GPBType::UINT32); $m->setRepeatedInt32($repeated_int32); }