mirror of
https://github.com/danog/file.git
synced 2025-01-22 21:31:15 +01:00
28bdce091e
Handle interface still provided for backward compatibility.
27 lines
497 B
PHP
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();
|
|
}
|
|
}
|