support cross version phpunit (#92)

This commit is contained in:
Dengke Tang
2023-03-09 16:44:10 -08:00
committed by GitHub
parent 5334110e8b
commit 46e0ca0c81
9 changed files with 22 additions and 22 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
use AWS\CRT\CRT;
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
require_once('common.inc');
// This intentionally does not inherit from CrtTestCase because it needs a clean-room environment
final class CoreTest extends 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());
}
}