Skip to content

Commit

Permalink
fix return values for smbclient backend
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Apr 8, 2016
1 parent 764f3fc commit 6e544f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ protected function execute($command) {
* @return bool
*/
protected function parseOutput($lines, $path = '') {
$this->parser->checkForError($lines, $path);
return $this->parser->checkForError($lines, $path);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/AbstractShare.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function testRenameFile($name) {
$this->share->put($tmpFile, $this->root . '/' . $name);
unlink($tmpFile);

$this->share->rename($this->root . '/' . $name, $this->root . '/' . $name . '_renamed');
$this->assertTrue($this->share->rename($this->root . '/' . $name, $this->root . '/' . $name . '_renamed'));

$files = $this->share->dir($this->root);
$this->assertEquals(1, count($files));
Expand All @@ -224,7 +224,7 @@ public function testGet($name, $text) {
unlink($tmpFile);

$targetFile = tempnam('/tmp', 'smb_test_');
$this->share->get($this->root . '/' . $name, $targetFile);
$this->assertTrue($this->share->get($this->root . '/' . $name, $targetFile));

$this->assertEquals($text, file_get_contents($targetFile));
unlink($targetFile);
Expand Down

0 comments on commit 6e544f6

Please sign in to comment.