File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,14 +368,6 @@ public function __construct($init = null, $options = [])
368368 $ this ->setObjectName (\array_key_exists ('objectName ' , $ options ) ? $ options ['objectName ' ] : null );
369369 }
370370
371- /**
372- * Disconnect CURL before pass away.
373- */
374- public function __destruct ()
375- {
376- $ this ->disconnect ();
377- }
378-
379371 /**
380372 * Obtain record/object identificator code: or id:
381373 *
@@ -1489,24 +1481,11 @@ public function setAction(string $action)
14891481 return $ result ;
14901482 }
14911483
1492- /**
1493- * Disconnect from AbraFlexi.
1494- */
1495- public function disconnect (): void
1496- {
1497- if ((null === $ this ->curl ) === false ) {
1498- curl_close ($ this ->curl );
1499- }
1500-
1501- $ this ->curl = null ;
1502- }
1503-
15041484 /**
15051485 * Reset Curl Connection.
15061486 */
15071487 public function connectionReset (): void
15081488 {
1509- $ this ->disconnect ();
15101489 $ this ->curlInit ();
15111490 }
15121491
Original file line number Diff line number Diff line change @@ -532,18 +532,6 @@ protected function tearDown(): void
532532 // }
533533 //
534534 // /**
535- // * @covers \AbraFlexi\RO::disconnect
536- // *
537- // * @todo Implement testdisconnect().
538- // */
539- // public function testdisconnect(): void
540- // {
541- // $this->assertEquals('', $this->object->disconnect());
542- // // Remove the following lines when you implement this test.
543- // $this->markTestIncomplete('This test has not been implemented yet.');
544- // }
545- //
546- // /**
547535 // * @covers \AbraFlexi\RO::connectionReset
548536 // *
549537 // * @todo Implement testconnectionReset().
You can’t perform that action at this time.
0 commit comments