Skip to content

Commit 21154f9

Browse files
committed
tests: RemoteStream moved to FileSystem.phpt
1 parent 2ca111e commit 21154f9

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

tests/Utils/FileSystem.phpt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@ use Tester\Assert;
1313
require __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+
1633
test(function () { // createDir
1734
FileSystem::createDir(TEMP_DIR . '/1/b/');
1835
Assert::true(is_dir(TEMP_DIR . '/1/b'));

tests/bootstrap.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)