mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
* Updates to stub generation * More idiomatic fixes from PHP team * Moved tests from src/tests -> tests, got rid of extension-only tests * fixed up test paths, regenerated arginfo
16 lines
485 B
PHP
16 lines
485 B
PHP
<?php
|
|
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
use AWS\CRT\CRT as CRT;
|
|
|
|
abstract class CrtTestCase extends PHPUnit_Framework_TestCase {
|
|
// Ensure that after every test there are no errors in the CRT itself
|
|
protected function assertPostConditions() {
|
|
if (CRT::last_error()) {
|
|
$this->fail("Test left an error on the stack: " . CRT::error_name(CRT::last_error()));
|
|
}
|
|
}
|
|
}
|