示例#1
0
 public function testAtivandoContingenciaSvcanESvcrs()
 {
     $tool = new ToolsNFePHP($this->configTest, 2, true);
     $this->assertFalse($tool->enableSVCAN);
     $this->assertFalse($tool->enableSVCRS);
     $tool->ativaContingencia('BA');
     $this->assertTrue($tool->enableSVCRS);
     $this->assertFalse($tool->enableSVCAN);
     $tool->ativaContingencia('SP');
     $this->assertTrue($tool->enableSVCAN);
     $this->assertFalse($tool->enableSVCRS);
     $tool->desativaContingencia();
     $this->assertFalse($tool->enableSVCAN);
     $this->assertFalse($tool->enableSVCRS);
 }