mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
Restored FFI to working order (#28)
* Restored FFI to working order * Disabled incompatible tests, fixed string conversion * Use extension_loaded instead of checking PHP version * Added better checks for FFI * Do not build FFI deps if no FFI is present
This commit is contained in:
@@ -39,6 +39,7 @@ 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);
|
||||
@@ -61,6 +62,8 @@ final class SigningTest extends CrtTestCase {
|
||||
const SIGV4TEST_SERVICE = 'service';
|
||||
const SIGV4TEST_REGION = 'us-east-1';
|
||||
public function testSigv4HeaderSigning() {
|
||||
$this->skipFFI();
|
||||
|
||||
$date = mktime(12, 36, 0, 8, 30, 2015);
|
||||
$credentials_provider = new StaticCredentialsProvider([
|
||||
'access_key_id' => self::SIGV4TEST_ACCESS_KEY_ID,
|
||||
|
||||
Reference in New Issue
Block a user