home
/
zktecojo
/
public_html
/
vendor
/
phpseclib
/
phpseclib
/
tests
/
Unit
/
Net
➕ New
📤 Upload
✎ Editing:
SFTPStreamTest.php
← Back
<?php /** * @author Andreas Fischer <bantu@phpbb.com> * @copyright MMXIV Andreas Fischer * @license http://www.opensource.org/licenses/mit-license.html MIT License */ require_once 'Net/SFTP/Stream.php'; class Unit_Net_SFTPStreamTest extends PhpseclibTestCase { protected $protocol = 'sftptest'; public function setUp() { parent::setUp(); if (in_array($this->protocol, stream_get_wrappers())) { stream_wrapper_unregister($this->protocol); } } public function testRegisterFromSideEffect() { // Including the file registers 'sftp' as a stream. $this->assertContains('sftp', stream_get_wrappers()); } public function testRegisterWithArgument() { Net_SFTP_Stream::register($this->protocol); $this->assertContains($this->protocol, stream_get_wrappers()); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel