summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-crt-php/tests/EventLoopGroupTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-crt-php/tests/EventLoopGroupTest.php')
-rw-r--r--vendor/aws/aws-crt-php/tests/EventLoopGroupTest.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/aws/aws-crt-php/tests/EventLoopGroupTest.php b/vendor/aws/aws-crt-php/tests/EventLoopGroupTest.php
new file mode 100644
index 0000000..6a52c69
--- /dev/null
+++ b/vendor/aws/aws-crt-php/tests/EventLoopGroupTest.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+use AWS\CRT\IO\EventLoopGroup as EventLoopGroup;
+
+require_once('common.inc');
+
+final class EventLoopGroupTest extends CrtTestCase {
+
+ public function testLifetime() {
+ $elg = new EventLoopGroup();
+ $this->assertNotNull($elg, "Failed to create default EventLoopGroup");
+ $elg = null;
+ }
+
+ public function testConstructionWithOptions() {
+ $options = EventLoopGroup::defaults();
+ $options['num_threads'] = 1;
+ $elg = new EventLoopGroup($options);
+ $this->assertNotNull($elg, "Failed to create EventLoopGroup with 1 thread");
+ $elg = null;
+ }
+}