2014-03-19 09:15:54 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-03-13 at 15:55:58.
|
|
|
|
*/
|
2018-04-16 01:23:24 +00:00
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
|
|
|
|
class m_ftpTest extends TestCase
|
2014-03-19 09:15:54 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var m_ftp
|
|
|
|
*/
|
|
|
|
protected $object;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets up the fixture, for example, opens a network connection.
|
|
|
|
* This method is called before a test is executed.
|
|
|
|
*/
|
|
|
|
protected function setUp()
|
|
|
|
{
|
2014-03-22 14:45:07 +00:00
|
|
|
parent::setUp();
|
2014-03-19 09:15:54 +00:00
|
|
|
$this->object = new m_ftp;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Tears down the fixture, for example, closes a network connection.
|
|
|
|
* This method is called after a test is executed.
|
|
|
|
*/
|
|
|
|
protected function tearDown()
|
|
|
|
{
|
2014-03-22 14:45:07 +00:00
|
|
|
parent::tearDown();
|
2014-03-19 09:15:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::alternc_password_policy
|
|
|
|
* @todo Implement testAlternc_password_policy().
|
|
|
|
*/
|
|
|
|
public function testAlternc_password_policy()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::hook_menu
|
|
|
|
* @todo Implement testHook_menu().
|
|
|
|
*/
|
|
|
|
public function testHook_menu()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::authip_class
|
|
|
|
* @todo Implement testAuthip_class().
|
|
|
|
*/
|
|
|
|
public function testAuthip_class()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::switch_enabled
|
|
|
|
* @todo Implement testSwitch_enabled().
|
|
|
|
*/
|
|
|
|
public function testSwitch_enabled()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::get_list
|
|
|
|
* @todo Implement testGet_list().
|
|
|
|
*/
|
|
|
|
public function testGet_list()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::get_ftp_details
|
|
|
|
* @todo Implement testGet_ftp_details().
|
|
|
|
*/
|
|
|
|
public function testGet_ftp_details()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::prefix_list
|
|
|
|
* @todo Implement testPrefix_list().
|
|
|
|
*/
|
|
|
|
public function testPrefix_list()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::check_login
|
|
|
|
* @todo Implement testCheck_login().
|
|
|
|
*/
|
|
|
|
public function testCheck_login()
|
|
|
|
{
|
2014-04-07 16:28:48 +00:00
|
|
|
// Allowed
|
|
|
|
$this->assertTrue($this->object->check_login('plop'));
|
|
|
|
$this->assertTrue($this->object->check_login('00'));
|
|
|
|
|
|
|
|
// Forbidden
|
|
|
|
$this->assertFalse($this->object->check_login('_plop'));
|
|
|
|
$this->assertFalse($this->object->check_login('arf+'));
|
2014-03-19 09:15:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::select_prefix_list
|
|
|
|
* @todo Implement testSelect_prefix_list().
|
|
|
|
*/
|
|
|
|
public function testSelect_prefix_list()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::put_ftp_details
|
|
|
|
* @todo Implement testPut_ftp_details().
|
|
|
|
*/
|
|
|
|
public function testPut_ftp_details()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::delete_ftp
|
|
|
|
* @todo Implement testDelete_ftp().
|
|
|
|
*/
|
|
|
|
public function testDelete_ftp()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::add_ftp
|
|
|
|
* @todo Implement testAdd_ftp().
|
|
|
|
*/
|
|
|
|
public function testAdd_ftp()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::is_ftp
|
|
|
|
* @todo Implement testIs_ftp().
|
|
|
|
*/
|
|
|
|
public function testIs_ftp()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::alternc_del_domain
|
|
|
|
* @todo Implement testAlternc_del_domain().
|
|
|
|
*/
|
|
|
|
public function testAlternc_del_domain()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::alternc_del_member
|
|
|
|
* @todo Implement testAlternc_del_member().
|
|
|
|
*/
|
|
|
|
public function testAlternc_del_member()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::hook_quota_get
|
|
|
|
* @todo Implement testHook_quota_get().
|
|
|
|
*/
|
|
|
|
public function testHook_quota_get()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @covers m_ftp::alternc_export_conf
|
|
|
|
* @todo Implement testAlternc_export_conf().
|
|
|
|
*/
|
|
|
|
public function testAlternc_export_conf()
|
|
|
|
{
|
|
|
|
// Remove the following lines when you implement this test.
|
|
|
|
$this->markTestIncomplete(
|
|
|
|
'This test has not been implemented yet.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|