summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-crt-php/tests/000_CoreTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-crt-php/tests/000_CoreTest.php')
-rw-r--r--vendor/aws/aws-crt-php/tests/000_CoreTest.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/aws/aws-crt-php/tests/000_CoreTest.php b/vendor/aws/aws-crt-php/tests/000_CoreTest.php
new file mode 100644
index 0000000..e9e068a
--- /dev/null
+++ b/vendor/aws/aws-crt-php/tests/000_CoreTest.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+use AWS\CRT\CRT;
+
+require_once('common.inc');
+
+// This intentionally does not inherit from CrtTestCase because it needs a clean-room environment
+final class CoreTest extends PHPUnit_Framework_TestCase {
+
+ // The CRT should always be available in this test suite
+ public function testIsAvailable() {
+ $this->assertTrue(CRT::isAvailable());
+ }
+
+ // We have done nothing to necessitate loading the CRT, it should not be loaded
+ public function testIsLoaded() {
+ $this->assertTrue(!CRT::isLoaded());
+ }
+} \ No newline at end of file