mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
update tests to new phpunit
This commit is contained in:
parent
743a7bf353
commit
58f6df3807
11 changed files with 59 additions and 101 deletions
|
|
@ -31,7 +31,7 @@ class NativeStreamTest extends TestCase {
|
|||
|
||||
protected $config;
|
||||
|
||||
public function setUp() {
|
||||
public function setUp(): void {
|
||||
$this->requireBackendEnv('libsmbclient');
|
||||
if (!function_exists('smbclient_state_new')) {
|
||||
$this->markTestSkipped('libsmbclient php extension not installed');
|
||||
|
|
@ -137,7 +137,7 @@ class NativeStreamTest extends TestCase {
|
|||
$this->assertFalse(stream_set_blocking($fh, false));
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
public function tearDown(): void {
|
||||
if ($this->share) {
|
||||
$this->cleanDir($this->root);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue