mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 18:13:09 +00:00
Added test-ffi target, use it in CI (#9)
* Added test-ffi target, use it in CI * Added clang-format config, fixed RETURN_STRING API mismatch * Skip installing php and packages on the PHP docker images * Removed al2 job that was never going to work, and compiler tests * Fixed basic test for extension loading * Cleaned up lib structure, fixed tests * use test-ci target to conditionally test in GitHub * Use v0.8.1 of builder
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once('tests.inc');
|
||||
|
||||
final class ErrorTest extends PHPUnit_Framework_TestCase {
|
||||
private static $crt = null;
|
||||
public static function setUpBeforeClass() {
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
<?php
|
||||
|
||||
require_once('tests.inc');
|
||||
|
||||
final class EventLoopGroupTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
public function testLifetime() {
|
||||
$elg = new EventLoopGroup(new EventLoopGroupOptions());
|
||||
$elg = new EventLoopGroup();
|
||||
$elg = null;
|
||||
}
|
||||
|
||||
public function testConstructionWithOptions() {
|
||||
$options = new EventLoopGroupOptions();
|
||||
$options->num_threads = 1;
|
||||
$options = EventLoopGroup::defaults();
|
||||
$options['num_threads'] = 1;
|
||||
$elg = new EventLoopGroup($options);
|
||||
$elg = null;
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
// Ensure any version of PHPUnit works, since phpunit5 is the last one that
|
||||
// works with PHP5.6
|
||||
if (!class_exists('PHPUnit_Framework_TestCase') &&
|
||||
class_exists('\\PHPUnit\\Framework\\TestCase')) {
|
||||
abstract class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user