Removed FFI support (#45)

* Removed FFI support

* run_tests and ci-test.sh should never have differed. Fixing now

* run_tests can now update composer
This commit is contained in:
Justin Boswell
2021-08-17 19:06:14 -07:00
committed by GitHub
parent fb4814c4e1
commit 0af673491a
11 changed files with 18 additions and 152 deletions
-1
View File
@@ -10,7 +10,6 @@ require_once('common.inc');
class LogTest extends CrtTestCase {
public function testLogToStream() {
$this->skipFFI();
$log_stream = fopen("php://memory", "r+");
$this->assertNotNull($log_stream);
Log::toStream($log_stream);
-7
View File
@@ -39,7 +39,6 @@ final class SigningTest extends CrtTestCase {
}
public function testSignableFromChunkLifetime() {
$this->skipFFI();
$chunk = "THIS IS A TEST CHUNK IT CONTAINS MULTITUDES";
$stream = fopen("php://memory", 'r+');
fputs($stream, $chunk);
@@ -66,8 +65,6 @@ final class SigningTest extends CrtTestCase {
}
public function testShouldSignHeader() {
$this->skipFFI();
$credentials_provider = new StaticCredentialsProvider([
'access_key_id' => self::SIGV4TEST_ACCESS_KEY_ID,
'secret_access_key' => self::SIGV4TEST_SECRET_ACCESS_KEY,
@@ -107,8 +104,6 @@ final class SigningTest extends CrtTestCase {
}
public function testSigv4HeaderSigning() {
$this->skipFFI();
$credentials_provider = new StaticCredentialsProvider([
'access_key_id' => self::SIGV4TEST_ACCESS_KEY_ID,
'secret_access_key' => self::SIGV4TEST_SECRET_ACCESS_KEY,
@@ -143,8 +138,6 @@ final class SigningTest extends CrtTestCase {
}
public function testSigV4aHeaderSigning() {
$this->skipFFI();
$credentials_provider = new StaticCredentialsProvider([
'access_key_id' => self::SIGV4TEST_ACCESS_KEY_ID,
'secret_access_key' => self::SIGV4TEST_SECRET_ACCESS_KEY,
-1
View File
@@ -19,7 +19,6 @@ final class InputStreamTest extends CrtTestCase {
}
public function testMemoryStream() {
$this->skipFFI();
$mem_stream = $this->getMemoryStream();
$stream = new InputStream($mem_stream);
$this->assertNotNull($stream, "Failed to create InputStream from PHP memory stream");
-6
View File
@@ -31,10 +31,4 @@ abstract class CrtTestCase extends PHPUnit_Framework_TestCase {
$this->setExpectedException($arguments[0]);
}
}
public function skipFFI() {
if (CRT::isFFI()) {
$this->markTestSkipped();
}
}
}