/** * @expectedException InvalidArgumentException */ public function testFactoryThrowsExceptionOnMissingSubfieldIndex() { Field::factory(array('tag' => '003@', 'occurrence' => 10)); }