2019-10-01 21:39:23 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Amp\Test\Loop;
|
|
|
|
|
|
|
|
use Amp\Loop\NativeDriver;
|
|
|
|
use Amp\Loop\TracingDriver;
|
|
|
|
|
|
|
|
class TracingDriverTest extends DriverTest
|
|
|
|
{
|
|
|
|
public function getFactory(): callable
|
|
|
|
{
|
2020-09-26 19:34:39 +02:00
|
|
|
return static function (): TracingDriver {
|
2019-10-01 21:39:23 +02:00
|
|
|
return new TracingDriver(new NativeDriver);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @dataProvider provideRegistrationArgs
|
|
|
|
* @group memoryleak
|
|
|
|
*/
|
2020-09-26 19:34:39 +02:00
|
|
|
public function testNoMemoryLeak(string $type, array $args): void
|
2019-10-01 21:39:23 +02:00
|
|
|
{
|
|
|
|
// Skip, because the driver intentionally leaks
|
|
|
|
$this->assertTrue(true);
|
|
|
|
}
|
|
|
|
}
|