Skip to content

Commit 5cb958d

Browse files
committed
Test against ext-event if available
1 parent 6e9fe37 commit 5cb958d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

tests/ExtEventLoopProcessTest.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace React\Tests\ChildProcess;
4+
5+
use React\EventLoop\ExtEventLoop;
6+
7+
class ExtEventLoopProcessTest extends AbstractProcessTest
8+
{
9+
public function createLoop()
10+
{
11+
if (!extension_loaded('event')) {
12+
$this->markTestSkipped('ext-event is not installed.');
13+
}
14+
if (!class_exists('React\EventLoop\ExtEventLoop')) {
15+
$this->markTestSkipped('ext-event not supported by this legacy react/event-loop version');
16+
}
17+
18+
return new ExtEventLoop();
19+
}
20+
}

0 commit comments

Comments
 (0)