mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-27 04:46:26 +01:00
SFTP: return $sftp object in unit tests
This commit is contained in:
parent
05baf7b73b
commit
03c315d546
@ -325,6 +325,8 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
|||||||
$sftp->symlink('file3.txt', 'symlink'),
|
$sftp->symlink('file3.txt', 'symlink'),
|
||||||
'Failed asserting that a symlink could be created'
|
'Failed asserting that a symlink could be created'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
return $sftp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -335,6 +337,8 @@ class Functional_Net_SFTPUserStoryTest extends PhpseclibFunctionalTestCase
|
|||||||
$this->assertInternalType('string', $sftp->readlink('symlink'),
|
$this->assertInternalType('string', $sftp->readlink('symlink'),
|
||||||
'Failed asserting that a symlink\'s target could be read'
|
'Failed asserting that a symlink\'s target could be read'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
return $sftp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user