Example #1
0
 function testRequestDebug()
 {
     $frete = new PgsFrete();
     $frete->setUse('curl');
     $frete->debug(true);
     ob_start();
     $frete->request('http://google.com');
     $this->assertEqual("\nTrying to get 'http://google.com' using CURL", ob_get_clean(), 'O Debug funciona para setUse. %s');
 }