Skip to content

Commit

Permalink
Call destruct, there is a reference keeping it from destroying itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Mar 9, 2024
1 parent 960bd77 commit a72481e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion FtpAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function disconnect_after_destruct(): void
unset($reflection);

$this->assertTrue(false !== ftp_pwd($connection));
unset($adapter);
$adapter->__destruct();
static::clearFilesystemAdapterCache();
$this->assertFalse((new NoopCommandConnectivityChecker())->isConnected($connection));
}
Expand Down
10 changes: 2 additions & 8 deletions FtpAdapterTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,9 @@ protected function setUp(): void
$this->retryOnException(UnableToConnectToFtpHost::class);
}

/**
* @var ConnectivityCheckerThatCanFail
*/
protected static $connectivityChecker;
protected static ConnectivityCheckerThatCanFail $connectivityChecker;

/**
* @var StubConnectionProvider
*/
protected static $connectionProvider;
protected static ?StubConnectionProvider $connectionProvider;

/**
* @after
Expand Down

0 comments on commit a72481e

Please sign in to comment.