-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPHPClientTest.php
More file actions
37 lines (30 loc) · 911 Bytes
/
Copy pathPHPClientTest.php
File metadata and controls
37 lines (30 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
require_once __DIR__ . '/PHPClient.php';
require_once __DIR__ . '/RenderParams.php';
use PHPUnit\Framework\TestCase;
use Remotion\LambdaPhp\PHPClient;
use Remotion\LambdaPhp\RenderParams;
class PHPClientTest extends TestCase
{
public function testClient()
{
$client = new PHPClient(
"us-east-1",
"testbed",
"remotion-render",
null
);
$params = new RenderParams(
data: [
'hi' => 'there'
],
);
$params->setComposition("react-svg");
$internalParams = $client->constructInternals($params);
$this->assertEquals($client->getRegion(), "us-east-1");
$this->assertIsArray($internalParams);
$this->assertNotEmpty($internalParams);
print(json_encode($internalParams));
}
}