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;
1313require __DIR__ . '/../bootstrap.php ' ;
1414
1515
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+
1633test (function () { // createDir
1734 FileSystem::createDir (TEMP_DIR . '/1/b/ ' );
1835 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)
2626{
2727 $ function ();
2828}
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