OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
zzXpress
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
Api
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📄
ApiProviderTest.php
4.29 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
DateTimeResultTest.php
1.58 KB
05/19/2025 10:07:24 AM
rw-r--r--
📁
ErrorParser
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📄
ListShapeTest.php
786 bytes
05/19/2025 10:07:24 AM
rw-r--r--
📄
MapShapeTest.php
1.15 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
OperationTest.php
3.93 KB
05/19/2025 10:07:24 AM
rw-r--r--
📁
Parser
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📁
Serializer
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📄
ServiceTest.php
9.2 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
ShapeMapTest.php
949 bytes
05/19/2025 10:07:24 AM
rw-r--r--
📄
ShapeTest.php
2.97 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
Stringable.php
137 bytes
05/19/2025 10:07:24 AM
rw-r--r--
📄
StructureShapeTest.php
1.62 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
TimestampShapeTest.php
1.89 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
ValidatorTest.php
24.8 KB
05/19/2025 10:07:24 AM
rw-r--r--
📁
api_provider_fixtures
-
11/13/2024 03:03:34 PM
rwxr-xr-x
📁
eventstream_fixtures
-
11/13/2024 03:02:20 PM
rwxr-xr-x
📁
test_cases
-
11/13/2024 03:04:14 PM
rwxr-xr-x
Editing: MapShapeTest.php
Close
<?php namespace Aws\Test\Api; use Aws\Api\Shape; use Aws\Api\ShapeMap; use Aws\Api\MapShape; use Yoast\PHPUnitPolyfills\TestCases\TestCase; /** * @covers \Aws\Api\MapShape */ class MapShapeTest extends TestCase { public function testReturnsValue() { $s = new MapShape(['value' => ['type' => 'string']], new ShapeMap([])); $v = $s->getValue(); $this->assertInstanceOf(Shape::class, $v); $this->assertSame('string', $v->getType()); $this->assertSame($v, $s->getValue()); } public function testFailsWhenValueIsMissing() { $this->expectException(\RuntimeException::class); (new MapShape([], new ShapeMap([])))->getValue(); } public function testReturnsKey() { $s = new MapShape(['key' => ['type' => 'string']], new ShapeMap([])); $k = $s->getKey(); $this->assertInstanceOf(Shape::class, $k); $this->assertSame('string', $k->getType()); } public function testReturnsEmptyKey() { $s = new MapShape([], new ShapeMap([])); $this->assertInstanceOf(Shape::class, $s->getKey()); } }