Files
awslabs_aws-crt-php/lib/tests/EventLoopGroupTest.php
T
Justin Boswell 7b5ccfd55a Unit tests and I/O bindings (#8)
* Added composer config, added IO/error tests using phpunit

* Added ApiGen doc comments

* Added test to ensure last_error is not set from loading up the CRT
2021-02-09 10:26:41 -08:00

19 lines
442 B
PHP

<?php
require_once('tests.inc');
final class EventLoopGroupTest extends PHPUnit_Framework_TestCase {
public function testLifetime() {
$elg = new EventLoopGroup(new EventLoopGroupOptions());
$elg = null;
}
public function testConstructionWithOptions() {
$options = new EventLoopGroupOptions();
$options->num_threads = 1;
$elg = new EventLoopGroup($options);
$elg = null;
}
}