Alternc  latest
Alternc logiel libre pour l'hébergement
m_ftpTest Class Reference
+ Inheritance diagram for m_ftpTest:

Public Member Functions

 testAlternc_password_policy ()
 @covers m_ftp::alternc_password_policy More...
 
 testHook_menu ()
 @covers m_ftp::hook_menu More...
 
 testAuthip_class ()
 @covers m_ftp::authip_class More...
 
 testSwitch_enabled ()
 @covers m_ftp::switch_enabled More...
 
 testGet_list ()
 @covers m_ftp::get_list More...
 
 testGet_ftp_details ()
 @covers m_ftp::get_ftp_details More...
 
 testPrefix_list ()
 @covers m_ftp::prefix_list More...
 
 testCheck_login ()
 @covers m_ftp::check_login More...
 
 testSelect_prefix_list ()
 @covers m_ftp::select_prefix_list More...
 
 testPut_ftp_details ()
 @covers m_ftp::put_ftp_details More...
 
 testDelete_ftp ()
 @covers m_ftp::delete_ftp More...
 
 testAdd_ftp ()
 @covers m_ftp::add_ftp More...
 
 testIs_ftp ()
 @covers m_ftp::is_ftp More...
 
 testAlternc_del_domain ()
 @covers m_ftp::alternc_del_domain More...
 
 testAlternc_del_member ()
 @covers m_ftp::alternc_del_member More...
 
 testHook_quota_get ()
 @covers m_ftp::hook_quota_get More...
 
 testAlternc_export_conf ()
 @covers m_ftp::alternc_export_conf More...
 

Protected Member Functions

 setUp ()
 Sets up the fixture, for example, opens a network connection. More...
 
 tearDown ()
 Tears down the fixture, for example, closes a network connection. More...
 

Protected Attributes

 $object
 

Detailed Description

Definition at line 7 of file m_ftpTest.php.

Member Function Documentation

◆ setUp()

m_ftpTest::setUp ( )
protected

Sets up the fixture, for example, opens a network connection.

This method is called before a test is executed.

Definition at line 18 of file m_ftpTest.php.

19  {
20  parent::setUp();
21  $this->object = new m_ftp;
22  }
FTP account management class.
Definition: m_ftp.php:26

◆ tearDown()

m_ftpTest::tearDown ( )
protected

Tears down the fixture, for example, closes a network connection.

This method is called after a test is executed.

Definition at line 28 of file m_ftpTest.php.

29  {
30  parent::tearDown();
31  }

◆ testAdd_ftp()

m_ftpTest::testAdd_ftp ( )

@covers m_ftp::add_ftp

Todo:
Implement testAdd_ftp().

Definition at line 172 of file m_ftpTest.php.

173  {
174  // Remove the following lines when you implement this test.
175  $this->markTestIncomplete(
176  'This test has not been implemented yet.'
177  );
178  }

◆ testAlternc_del_domain()

m_ftpTest::testAlternc_del_domain ( )

@covers m_ftp::alternc_del_domain

Todo:
Implement testAlternc_del_domain().

Definition at line 196 of file m_ftpTest.php.

197  {
198  // Remove the following lines when you implement this test.
199  $this->markTestIncomplete(
200  'This test has not been implemented yet.'
201  );
202  }

◆ testAlternc_del_member()

m_ftpTest::testAlternc_del_member ( )

@covers m_ftp::alternc_del_member

Todo:
Implement testAlternc_del_member().

Definition at line 208 of file m_ftpTest.php.

209  {
210  // Remove the following lines when you implement this test.
211  $this->markTestIncomplete(
212  'This test has not been implemented yet.'
213  );
214  }

◆ testAlternc_export_conf()

m_ftpTest::testAlternc_export_conf ( )

@covers m_ftp::alternc_export_conf

Todo:
Implement testAlternc_export_conf().

Definition at line 232 of file m_ftpTest.php.

233  {
234  // Remove the following lines when you implement this test.
235  $this->markTestIncomplete(
236  'This test has not been implemented yet.'
237  );
238  }

◆ testAlternc_password_policy()

m_ftpTest::testAlternc_password_policy ( )

@covers m_ftp::alternc_password_policy

Todo:
Implement testAlternc_password_policy().

Definition at line 37 of file m_ftpTest.php.

38  {
39  // Remove the following lines when you implement this test.
40  $this->markTestIncomplete(
41  'This test has not been implemented yet.'
42  );
43  }

◆ testAuthip_class()

m_ftpTest::testAuthip_class ( )

@covers m_ftp::authip_class

Todo:
Implement testAuthip_class().

Definition at line 61 of file m_ftpTest.php.

62  {
63  // Remove the following lines when you implement this test.
64  $this->markTestIncomplete(
65  'This test has not been implemented yet.'
66  );
67  }

◆ testCheck_login()

m_ftpTest::testCheck_login ( )

@covers m_ftp::check_login

Todo:
Implement testCheck_login().

Definition at line 121 of file m_ftpTest.php.

122  {
123  // Allowed
124  $this->assertTrue($this->object->check_login('plop'));
125  $this->assertTrue($this->object->check_login('00'));
126 
127  // Forbidden
128  $this->assertFalse($this->object->check_login('_plop'));
129  $this->assertFalse($this->object->check_login('arf+'));
130  }

◆ testDelete_ftp()

m_ftpTest::testDelete_ftp ( )

@covers m_ftp::delete_ftp

Todo:
Implement testDelete_ftp().

Definition at line 160 of file m_ftpTest.php.

161  {
162  // Remove the following lines when you implement this test.
163  $this->markTestIncomplete(
164  'This test has not been implemented yet.'
165  );
166  }

◆ testGet_ftp_details()

m_ftpTest::testGet_ftp_details ( )

@covers m_ftp::get_ftp_details

Todo:
Implement testGet_ftp_details().

Definition at line 97 of file m_ftpTest.php.

98  {
99  // Remove the following lines when you implement this test.
100  $this->markTestIncomplete(
101  'This test has not been implemented yet.'
102  );
103  }

◆ testGet_list()

m_ftpTest::testGet_list ( )

@covers m_ftp::get_list

Todo:
Implement testGet_list().

Definition at line 85 of file m_ftpTest.php.

86  {
87  // Remove the following lines when you implement this test.
88  $this->markTestIncomplete(
89  'This test has not been implemented yet.'
90  );
91  }

◆ testHook_menu()

m_ftpTest::testHook_menu ( )

@covers m_ftp::hook_menu

Todo:
Implement testHook_menu().

Definition at line 49 of file m_ftpTest.php.

50  {
51  // Remove the following lines when you implement this test.
52  $this->markTestIncomplete(
53  'This test has not been implemented yet.'
54  );
55  }

◆ testHook_quota_get()

m_ftpTest::testHook_quota_get ( )

@covers m_ftp::hook_quota_get

Todo:
Implement testHook_quota_get().

Definition at line 220 of file m_ftpTest.php.

221  {
222  // Remove the following lines when you implement this test.
223  $this->markTestIncomplete(
224  'This test has not been implemented yet.'
225  );
226  }

◆ testIs_ftp()

m_ftpTest::testIs_ftp ( )

@covers m_ftp::is_ftp

Todo:
Implement testIs_ftp().

Definition at line 184 of file m_ftpTest.php.

185  {
186  // Remove the following lines when you implement this test.
187  $this->markTestIncomplete(
188  'This test has not been implemented yet.'
189  );
190  }

◆ testPrefix_list()

m_ftpTest::testPrefix_list ( )

@covers m_ftp::prefix_list

Todo:
Implement testPrefix_list().

Definition at line 109 of file m_ftpTest.php.

110  {
111  // Remove the following lines when you implement this test.
112  $this->markTestIncomplete(
113  'This test has not been implemented yet.'
114  );
115  }

◆ testPut_ftp_details()

m_ftpTest::testPut_ftp_details ( )

@covers m_ftp::put_ftp_details

Todo:
Implement testPut_ftp_details().

Definition at line 148 of file m_ftpTest.php.

149  {
150  // Remove the following lines when you implement this test.
151  $this->markTestIncomplete(
152  'This test has not been implemented yet.'
153  );
154  }

◆ testSelect_prefix_list()

m_ftpTest::testSelect_prefix_list ( )

@covers m_ftp::select_prefix_list

Todo:
Implement testSelect_prefix_list().

Definition at line 136 of file m_ftpTest.php.

137  {
138  // Remove the following lines when you implement this test.
139  $this->markTestIncomplete(
140  'This test has not been implemented yet.'
141  );
142  }

◆ testSwitch_enabled()

m_ftpTest::testSwitch_enabled ( )

@covers m_ftp::switch_enabled

Todo:
Implement testSwitch_enabled().

Definition at line 73 of file m_ftpTest.php.

74  {
75  // Remove the following lines when you implement this test.
76  $this->markTestIncomplete(
77  'This test has not been implemented yet.'
78  );
79  }

Member Data Documentation

◆ $object

m_ftpTest::$object
protected

Definition at line 12 of file m_ftpTest.php.


The documentation for this class was generated from the following file: