1
0
mirror of https://github.com/danog/file.git synced 2024-12-13 09:47:21 +01:00
file/test/ParallelDriverTest.php

27 lines
494 B
PHP
Raw Normal View History

<?php
2016-08-30 21:05:14 +02:00
namespace Amp\File\Test;
use Amp\File;
2016-08-30 21:05:14 +02:00
use Amp\Parallel\Worker\DefaultPool;
2019-08-23 20:59:26 +02:00
use Amp\Parallel\Worker\Pool;
2016-08-30 21:05:14 +02:00
class ParallelDriverTest extends DriverTest
{
2019-08-23 20:59:26 +02:00
/** @var Pool */
private $pool;
2019-08-23 20:59:26 +02:00
protected function setUp(): void
{
parent::setUp();
$this->pool = new DefaultPool;
File\filesystem(new File\ParallelDriver($this->pool));
}
2019-08-23 20:59:26 +02:00
protected function tearDown(): void
{
parent::tearDown();
$this->pool->shutdown();
2016-08-30 21:05:14 +02:00
}
}