1
0
mirror of https://github.com/danog/file.git synced 2025-01-22 21:31:15 +01:00
file/test/ParallelHandleTest.php
Aaron Piotrowski 28bdce091e
Rename Handle to File
Handle interface still provided for backward compatibility.
2019-08-23 14:47:03 -05:00

27 lines
497 B
PHP

<?php
namespace Amp\File\Test;
use Amp\File;
use Amp\Parallel\Worker\DefaultPool;
use Amp\Parallel\Worker\Pool;
class ParallelHandleTest extends AsyncFileTest
{
/** @var Pool */
private $pool;
protected function setUp(): void
{
parent::setUp();
$this->pool = new DefaultPool;
File\filesystem(new File\ParallelDriver($this->pool));
}
protected function tearDown(): void
{
parent::tearDown();
$this->pool->shutdown();
}
}