Completed
Push — master ( 20a668...02e94f )
by Guillermo A.
02:17
created

testSetLastEvaluatedTableName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GuillermoandraeTest\DynamoDb;
4
5
use Aws\DynamoDb\Marshaler;
6
use Guillermoandrae\DynamoDb\ListTablesRequest;
7
use PHPUnit\Framework\TestCase;
8
9
final class ListTablesRequestTest extends TestCase
10
{
11
    public function testSetLastEvaluatedTableName()
12
    {
13
        $request = new ListTablesRequest(new Marshaler());
14
        $request->setLastEvaluatedTableName('test');
15
        $expectedQuery = [
16
            'LastEvaluatedTableName' => 'test',
17
        ];
18
        $this->assertEquals($expectedQuery, $request->toArray());
19
    }
20
21
    public function testSetLimit()
22
    {
23
        $request = new ListTablesRequest(new Marshaler());
24
        $request->setLimit(5);
25
        $expectedQuery = [
26
            'Limit' => 5,
27
        ];
28
        $this->assertEquals($expectedQuery, $request->toArray());
29
    }
30
}
31