Skip to content

Commit

Permalink
tests: RemoteStream moved to FileSystem.phpt
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 21, 2017
1 parent 2ca111e commit 21154f9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 17 additions & 0 deletions tests/Utils/FileSystem.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
17 changes: 0 additions & 17 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 21154f9

Please sign in to comment.