mirror of
https://github.com/danog/amp.git
synced 2024-12-11 17:09:40 +01:00
9f68bd4046
Added Driver::isRunning(). Driver now must be started and stopped through an instance of DriverControl.
27 lines
567 B
PHP
27 lines
567 B
PHP
<?php
|
|
|
|
namespace Amp\Test\Loop;
|
|
|
|
use Amp\Loop\NativeDriver;
|
|
use Amp\Loop\TracingDriver;
|
|
|
|
class TracingDriverTest extends DriverTest
|
|
{
|
|
public function getFactory(): callable
|
|
{
|
|
return static function (): TracingDriver {
|
|
return new TracingDriver(new NativeDriver);
|
|
};
|
|
}
|
|
|
|
/**
|
|
* @dataProvider provideRegistrationArgs
|
|
* @group memoryleak
|
|
*/
|
|
public function testNoMemoryLeak(string $type, array $args): void
|
|
{
|
|
// Skip, because the driver intentionally leaks
|
|
$this->assertTrue(true);
|
|
}
|
|
}
|