Conditions | 1 |
Paths | 1 |
Total Lines | 42 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
57 | function call_user_func_array($name, $args) |
||
58 | { |
||
59 | static $iterations; |
||
60 | |||
61 | $iteration = $iterations[$name] ?? 0; |
||
62 | $iterations[$name]++; |
||
63 | |||
64 | $return = [ |
||
65 | 'ftp_nlist' => [ |
||
66 | ['foo.txt', 'bar.txt', 'fiz', 'baz'], |
||
67 | ], |
||
68 | 'ftp_pwd' => [ |
||
69 | '/root', |
||
70 | ], |
||
71 | 'ftp_chdir' => [ |
||
72 | false, |
||
73 | false, |
||
74 | true, |
||
75 | true, |
||
76 | true, |
||
77 | true, |
||
78 | ], |
||
79 | 'ftp_mdtm' => [ |
||
80 | '20180101123055', |
||
81 | '20180101123056', |
||
82 | '20180101123057', |
||
83 | '20180101123058' |
||
84 | ], |
||
85 | 'ftp_size' => [ |
||
86 | 100, |
||
87 | 200, |
||
88 | 1, |
||
89 | 1, |
||
90 | 1, |
||
91 | 1, |
||
92 | ], |
||
93 | 'ftp_put' => [ |
||
94 | true, |
||
95 | ], |
||
96 | ]; |
||
97 | |||
98 | return $return[$name][$iteration] ?? true; |
||
99 | } |
||
100 |