Alternc  latest
Alternc logiel libre pour l'hébergement
m_ftpTest.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-03-13 at 15:55:58.
4  */
5 use PHPUnit\Framework\TestCase;
6 
7 class m_ftpTest extends TestCase
8 {
9  /**
10  * @var m_ftp
11  */
12  protected $object;
13 
14  /**
15  * Sets up the fixture, for example, opens a network connection.
16  * This method is called before a test is executed.
17  */
18  protected function setUp()
19  {
20  parent::setUp();
21  $this->object = new m_ftp;
22  }
23 
24  /**
25  * Tears down the fixture, for example, closes a network connection.
26  * This method is called after a test is executed.
27  */
28  protected function tearDown()
29  {
30  parent::tearDown();
31  }
32 
33  /**
34  * @covers m_ftp::alternc_password_policy
35  * @todo Implement testAlternc_password_policy().
36  */
37  public function testAlternc_password_policy()
38  {
39  // Remove the following lines when you implement this test.
40  $this->markTestIncomplete(
41  'This test has not been implemented yet.'
42  );
43  }
44 
45  /**
46  * @covers m_ftp::hook_menu
47  * @todo Implement testHook_menu().
48  */
49  public function testHook_menu()
50  {
51  // Remove the following lines when you implement this test.
52  $this->markTestIncomplete(
53  'This test has not been implemented yet.'
54  );
55  }
56 
57  /**
58  * @covers m_ftp::authip_class
59  * @todo Implement testAuthip_class().
60  */
61  public function testAuthip_class()
62  {
63  // Remove the following lines when you implement this test.
64  $this->markTestIncomplete(
65  'This test has not been implemented yet.'
66  );
67  }
68 
69  /**
70  * @covers m_ftp::switch_enabled
71  * @todo Implement testSwitch_enabled().
72  */
73  public function testSwitch_enabled()
74  {
75  // Remove the following lines when you implement this test.
76  $this->markTestIncomplete(
77  'This test has not been implemented yet.'
78  );
79  }
80 
81  /**
82  * @covers m_ftp::get_list
83  * @todo Implement testGet_list().
84  */
85  public function testGet_list()
86  {
87  // Remove the following lines when you implement this test.
88  $this->markTestIncomplete(
89  'This test has not been implemented yet.'
90  );
91  }
92 
93  /**
94  * @covers m_ftp::get_ftp_details
95  * @todo Implement testGet_ftp_details().
96  */
97  public function testGet_ftp_details()
98  {
99  // Remove the following lines when you implement this test.
100  $this->markTestIncomplete(
101  'This test has not been implemented yet.'
102  );
103  }
104 
105  /**
106  * @covers m_ftp::prefix_list
107  * @todo Implement testPrefix_list().
108  */
109  public function testPrefix_list()
110  {
111  // Remove the following lines when you implement this test.
112  $this->markTestIncomplete(
113  'This test has not been implemented yet.'
114  );
115  }
116 
117  /**
118  * @covers m_ftp::check_login
119  * @todo Implement testCheck_login().
120  */
121  public function testCheck_login()
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  }
131 
132  /**
133  * @covers m_ftp::select_prefix_list
134  * @todo Implement testSelect_prefix_list().
135  */
136  public function testSelect_prefix_list()
137  {
138  // Remove the following lines when you implement this test.
139  $this->markTestIncomplete(
140  'This test has not been implemented yet.'
141  );
142  }
143 
144  /**
145  * @covers m_ftp::put_ftp_details
146  * @todo Implement testPut_ftp_details().
147  */
148  public function testPut_ftp_details()
149  {
150  // Remove the following lines when you implement this test.
151  $this->markTestIncomplete(
152  'This test has not been implemented yet.'
153  );
154  }
155 
156  /**
157  * @covers m_ftp::delete_ftp
158  * @todo Implement testDelete_ftp().
159  */
160  public function testDelete_ftp()
161  {
162  // Remove the following lines when you implement this test.
163  $this->markTestIncomplete(
164  'This test has not been implemented yet.'
165  );
166  }
167 
168  /**
169  * @covers m_ftp::add_ftp
170  * @todo Implement testAdd_ftp().
171  */
172  public function testAdd_ftp()
173  {
174  // Remove the following lines when you implement this test.
175  $this->markTestIncomplete(
176  'This test has not been implemented yet.'
177  );
178  }
179 
180  /**
181  * @covers m_ftp::is_ftp
182  * @todo Implement testIs_ftp().
183  */
184  public function testIs_ftp()
185  {
186  // Remove the following lines when you implement this test.
187  $this->markTestIncomplete(
188  'This test has not been implemented yet.'
189  );
190  }
191 
192  /**
193  * @covers m_ftp::alternc_del_domain
194  * @todo Implement testAlternc_del_domain().
195  */
196  public function testAlternc_del_domain()
197  {
198  // Remove the following lines when you implement this test.
199  $this->markTestIncomplete(
200  'This test has not been implemented yet.'
201  );
202  }
203 
204  /**
205  * @covers m_ftp::alternc_del_member
206  * @todo Implement testAlternc_del_member().
207  */
208  public function testAlternc_del_member()
209  {
210  // Remove the following lines when you implement this test.
211  $this->markTestIncomplete(
212  'This test has not been implemented yet.'
213  );
214  }
215 
216  /**
217  * @covers m_ftp::hook_quota_get
218  * @todo Implement testHook_quota_get().
219  */
220  public function testHook_quota_get()
221  {
222  // Remove the following lines when you implement this test.
223  $this->markTestIncomplete(
224  'This test has not been implemented yet.'
225  );
226  }
227 
228  /**
229  * @covers m_ftp::alternc_export_conf
230  * @todo Implement testAlternc_export_conf().
231  */
232  public function testAlternc_export_conf()
233  {
234  // Remove the following lines when you implement this test.
235  $this->markTestIncomplete(
236  'This test has not been implemented yet.'
237  );
238  }
239 
240 }
FTP account management class.
Definition: m_ftp.php:26
testAlternc_del_domain()
@covers m_ftp::alternc_del_domain
Definition: m_ftpTest.php:196
testDelete_ftp()
@covers m_ftp::delete_ftp
Definition: m_ftpTest.php:160
testGet_ftp_details()
@covers m_ftp::get_ftp_details
Definition: m_ftpTest.php:97
testAuthip_class()
@covers m_ftp::authip_class
Definition: m_ftpTest.php:61
testGet_list()
@covers m_ftp::get_list
Definition: m_ftpTest.php:85
testSelect_prefix_list()
@covers m_ftp::select_prefix_list
Definition: m_ftpTest.php:136
testPrefix_list()
@covers m_ftp::prefix_list
Definition: m_ftpTest.php:109
testAlternc_export_conf()
@covers m_ftp::alternc_export_conf
Definition: m_ftpTest.php:232
testIs_ftp()
@covers m_ftp::is_ftp
Definition: m_ftpTest.php:184
testAdd_ftp()
@covers m_ftp::add_ftp
Definition: m_ftpTest.php:172
setUp()
Sets up the fixture, for example, opens a network connection.
Definition: m_ftpTest.php:18
testCheck_login()
@covers m_ftp::check_login
Definition: m_ftpTest.php:121
testHook_quota_get()
@covers m_ftp::hook_quota_get
Definition: m_ftpTest.php:220
testAlternc_password_policy()
@covers m_ftp::alternc_password_policy
Definition: m_ftpTest.php:37
testAlternc_del_member()
@covers m_ftp::alternc_del_member
Definition: m_ftpTest.php:208
testHook_menu()
@covers m_ftp::hook_menu
Definition: m_ftpTest.php:49
testPut_ftp_details()
@covers m_ftp::put_ftp_details
Definition: m_ftpTest.php:148
testSwitch_enabled()
@covers m_ftp::switch_enabled
Definition: m_ftpTest.php:73
tearDown()
Tears down the fixture, for example, closes a network connection.
Definition: m_ftpTest.php:28