File tree Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Expand file tree Collapse file tree 2 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,23 @@ use Tester\Assert;
13
13
require __DIR__ . '/../bootstrap.php ' ;
14
14
15
15
16
+ class RemoteStream /* extends \streamWrapper */
17
+ {
18
+ public function stream_open ()
19
+ {
20
+ return true ;
21
+ }
22
+
23
+
24
+ public function url_stat ()
25
+ {
26
+ return false ;
27
+ }
28
+ }
29
+
30
+ stream_wrapper_register ('remote ' , RemoteStream::class, STREAM_IS_URL );
31
+
32
+
16
33
test (function () { // createDir
17
34
FileSystem::createDir (TEMP_DIR . '/1/b/ ' );
18
35
Assert::true (is_dir (TEMP_DIR . '/1/b ' ));
Original file line number Diff line number Diff line change @@ -26,20 +26,3 @@ function test(\Closure $function)
26
26
{
27
27
$ function ();
28
28
}
29
-
30
-
31
- class RemoteStream /* extends \streamWrapper */
32
- {
33
- public function stream_open ()
34
- {
35
- return true ;
36
- }
37
-
38
-
39
- public function url_stat ()
40
- {
41
- return false ;
42
- }
43
- }
44
-
45
- stream_wrapper_register ('remote ' , RemoteStream::class, STREAM_IS_URL );
You can’t perform that action at this time.
0 commit comments