diff --git a/tests/Utils/FileSystem.phpt b/tests/Utils/FileSystem.phpt index cf4dbcb3e..fe8a34d64 100644 --- a/tests/Utils/FileSystem.phpt +++ b/tests/Utils/FileSystem.phpt @@ -13,6 +13,23 @@ use Tester\Assert; require __DIR__ . '/../bootstrap.php'; +class RemoteStream /* extends \streamWrapper */ +{ + public function stream_open() + { + return true; + } + + + public function url_stat() + { + return false; + } +} + +stream_wrapper_register('remote', RemoteStream::class, STREAM_IS_URL); + + test(function () { // createDir FileSystem::createDir(TEMP_DIR . '/1/b/'); Assert::true(is_dir(TEMP_DIR . '/1/b')); diff --git a/tests/bootstrap.php b/tests/bootstrap.php index fa497c189..ff6310093 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -26,20 +26,3 @@ function test(\Closure $function) { $function(); } - - -class RemoteStream /* extends \streamWrapper */ -{ - public function stream_open() - { - return true; - } - - - public function url_stat() - { - return false; - } -} - -stream_wrapper_register('remote', RemoteStream::class, STREAM_IS_URL);