From a7b076a05b16047a09b5194782505c68d98208b7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 3 Apr 2023 16:00:16 +0200 Subject: [PATCH] test that smbclient_getxattr returns not empty string --- tests/GetxattrTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/GetxattrTest.php b/tests/GetxattrTest.php index 539a0d0..266f353 100644 --- a/tests/GetxattrTest.php +++ b/tests/GetxattrTest.php @@ -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 @@ -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 @@ -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)); } /**