mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-10 15:50:58 +00:00
c4b103468c
Change copyright years from roman numeral to decimal numbers. * bantu/fix-547: Change copyright years from roman numeral to decimal numbers. Conflicts: phpseclib/System/SSH_Agent.php
25 lines
766 B
PHP
25 lines
766 B
PHP
<?php
|
|
/**
|
|
* @author Andreas Fischer <bantu@phpbb.com>
|
|
* @copyright 2014 Andreas Fischer
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
*/
|
|
|
|
class Unit_Net_SFTPStreamTest extends PhpseclibTestCase
|
|
{
|
|
public function testRegisterWithoutArgument()
|
|
{
|
|
$this->assertTrue(Net_SFTP_Stream::register());
|
|
$this->assertContains('sftp', stream_get_wrappers());
|
|
$this->assertTrue(stream_wrapper_unregister('sftp'));
|
|
}
|
|
|
|
public function testRegisterWithArgument()
|
|
{
|
|
$protocol = 'sftptest';
|
|
$this->assertTrue(Net_SFTP_Stream::register($protocol));
|
|
$this->assertContains($protocol, stream_get_wrappers());
|
|
$this->assertTrue(stream_wrapper_unregister($protocol));
|
|
}
|
|
}
|