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 e089524 commit 4d5aaca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Ftp/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 src/Ftp/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 4d5aaca

Please sign in to comment.