/** * @expectedException NfeFocus\Exception\FieldRequiredException */ public function testNullName() { $name = null; $receiver = new Receiver(); $receiver->setName($name); }