mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
31 lines
850 B
PHP
31 lines
850 B
PHP
<?php
|
|
/**
|
|
* @author Andreas Fischer <bantu@phpbb.com>
|
|
* @copyright 2014 Andreas Fischer
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
*/
|
|
|
|
use phpseclib\Net\SFTP\Stream;
|
|
|
|
class Unit_Net_SFTPStreamUnitTest extends PhpseclibTestCase
|
|
{
|
|
public function testRegisterWithoutArgument()
|
|
{
|
|
$this->assertTrue(Stream::register());
|
|
$this->assertContains('sftp', stream_get_wrappers());
|
|
$this->assertTrue(stream_wrapper_unregister('sftp'));
|
|
}
|
|
|
|
public function testRegisterWithArgument()
|
|
{
|
|
$protocol = 'sftptest';
|
|
$this->assertTrue(Stream::register($protocol));
|
|
$this->assertContains($protocol, stream_get_wrappers());
|
|
$this->assertTrue(stream_wrapper_unregister($protocol));
|
|
}
|
|
}
|
|
|
|
class SFTPStreamUnitTest extends Unit_Net_SFTPStreamUnitTest
|
|
{
|
|
}
|