1 | <?php |
||
16 | class FakeHttpWrapper |
||
17 | { |
||
18 | public static $ref = [ |
||
19 | // youtube content |
||
20 | 'http://www.youtube.com/oembed?url=http://www.youtube.com/watch?v=BDYAbAtaDzA&format=json' => 'valide_youtube.txt', |
||
21 | 'http://i3.ytimg.com/vi/BDYAbAtaDzA/hqdefault.jpg' => 'logo.jpg', |
||
22 | |||
23 | // dailymotion content |
||
24 | 'http://www.dailymotion.com/services/oembed?url=http://www.dailymotion.com/video/x9wjql&format=json' => 'valide_dailymotion.txt', |
||
25 | 'http://ak2.static.dailymotion.com/static/video/711/536/16635117:jpeg_preview_large.jpg?20100801072241' => 'logo.jpg', |
||
26 | |||
27 | // vimeo content |
||
28 | 'http://vimeo.com/api/oembed.json?url=http://vimeo.com/BDYAbAtaDzA' => 'valide_vimeo.txt', |
||
29 | 'http://b.vimeocdn.com/ts/136/375/136375440_1280.jpg' => 'logo.jpg', |
||
30 | ]; |
||
31 | |||
32 | /* Properties */ |
||
33 | public $context; |
||
34 | |||
35 | public $fp; |
||
36 | |||
37 | /* Methods */ |
||
38 | public function __construct() |
||
41 | |||
42 | public function dir_closedir(): void |
||
45 | |||
46 | public function dir_opendir($path, $options): void |
||
49 | |||
50 | public function dir_readdir(): void |
||
53 | |||
54 | public function dir_rewinddir(): void |
||
57 | |||
58 | public function mkdir($path, $mode, $options): void |
||
61 | |||
62 | public function rename($path_from, $path_to): void |
||
65 | |||
66 | public function rmdir($path, $options): void |
||
69 | |||
70 | public function stream_cast($cast_as): void |
||
73 | |||
74 | public function stream_close(): bool |
||
78 | |||
79 | public function stream_eof(): bool |
||
83 | |||
84 | public function stream_flush(): void |
||
87 | |||
88 | public function stream_lock($operation): void |
||
91 | |||
92 | public function stream_open($path, $mode, $options, &$opened_path): bool |
||
104 | |||
105 | public function stream_read($count) |
||
109 | |||
110 | public function stream_seek($offset, $whence = SEEK_SET): void |
||
113 | |||
114 | public function stream_set_option($option, $arg1, $arg2): void |
||
117 | |||
118 | public function stream_stat(): void |
||
121 | |||
122 | public function stream_tell(): void |
||
125 | |||
126 | public function stream_write($data): void |
||
129 | |||
130 | public function unlink($path): void |
||
133 | |||
134 | public function url_stat($path, $flags): void |
||
137 | } |
||
138 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.