update tests to new phpunit

This commit is contained in:
Robin Appelman 2021-03-02 17:34:36 +01:00
commit 58f6df3807
11 changed files with 59 additions and 101 deletions

View file

@ -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);
}