Skip to content

Commit

Permalink
test that smbclient_getxattr returns not empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Apr 3, 2023
1 parent 78b5191 commit a7b076a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/GetxattrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public function
$state = smbclient_state_new();
smbclient_state_init($state, null, SMB_USER, SMB_PASS);
$attr = smbclient_getxattr($state, 'smb://'.SMB_HOST.'/'.SMB_SHARE.'/testdir/testfile.txt', 'system.*');
$this->assertTrue(is_string($attr));
$this->assertTrue(is_string($attr) && strlen($attr));
}

public function
Expand All @@ -17,7 +17,7 @@ public function
$state = smbclient_state_new();
smbclient_state_init($state, null, SMB_USER, SMB_PASS);
$attr = smbclient_getxattr($state, 'smb://'.SMB_HOST.'/'.SMB_SHARE.'/testdir', 'system.*');
$this->assertTrue(is_string($attr));
$this->assertTrue(is_string($attr) && strlen($attr));
}

public function
Expand All @@ -26,7 +26,7 @@ public function
$state = smbclient_state_new();
smbclient_state_init($state, null, SMB_USER, SMB_PASS);
$attr = smbclient_getxattr($state, 'smb://'.SMB_HOST.'/'.SMB_SHARE, 'system.*');
$this->assertTrue(is_string($attr));
$this->assertTrue(is_string($attr) && strlen($attr));
}

/**
Expand Down

0 comments on commit a7b076a

Please sign in to comment.