mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -31,10 +31,4 @@ abstract class CrtTestCase extends PHPUnit_Framework_TestCase {
|
||||
$this->setExpectedException($arguments[0]);
|
||||
}
|
||||
}
|
||||
|
||||
public function skipFFI() {
|
||||
if (CRT::isFFI()) {
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user