/** * @expectedException NfeFocus\Exception\FieldRequiredException */ public function testNullDocument() { $document = null; $receiver = new Receiver(); $receiver->setDocument($document); }