Exemple #1
0
 public function testSetValue()
 {
     $newValue = 'NewValue';
     $this->claim->setValue($newValue);
     $this->assertSame($newValue, $this->claim->getValue());
 }
Exemple #2
0
 public function testEmptyIssuerAddress()
 {
     try {
         $address = '';
         $issuer = new Issuer();
         $issuer->setAddress($address);
     } catch (\Exception $e) {
         $this->assertContains('must be an instance of NfeFocus\\Address', $e->getMessage());
     }
 }