OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
zzaws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
Api
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 08:01:07 AM
rwxr-xr-x
📄
ApiProviderTest.php
4.29 KB
08/14/2024 07:59:03 AM
rw-r--r--
📄
DateTimeResultTest.php
1.58 KB
08/14/2024 07:59:03 AM
rw-r--r--
📁
ErrorParser
-
08/14/2024 08:01:02 AM
rwxr-xr-x
📄
ListShapeTest.php
786 bytes
08/14/2024 07:59:03 AM
rw-r--r--
📄
MapShapeTest.php
1.15 KB
08/14/2024 07:59:03 AM
rw-r--r--
📄
OperationTest.php
3.93 KB
08/14/2024 07:59:03 AM
rw-r--r--
📁
Parser
-
08/14/2024 08:07:58 AM
rwxr-xr-x
📁
Serializer
-
08/14/2024 08:01:03 AM
rwxr-xr-x
📄
ServiceTest.php
9.2 KB
08/14/2024 07:59:03 AM
rw-r--r--
📄
ShapeMapTest.php
949 bytes
08/14/2024 07:59:03 AM
rw-r--r--
📄
ShapeTest.php
2.97 KB
08/14/2024 07:59:03 AM
rw-r--r--
📄
Stringable.php
137 bytes
08/14/2024 07:59:03 AM
rw-r--r--
📄
StructureShapeTest.php
1.62 KB
08/14/2024 07:59:03 AM
rw-r--r--
📄
TimestampShapeTest.php
1.89 KB
08/14/2024 07:59:03 AM
rw-r--r--
📄
ValidatorTest.php
24.8 KB
08/14/2024 07:59:03 AM
rw-r--r--
📁
api_provider_fixtures
-
08/14/2024 08:08:06 AM
rwxr-xr-x
📁
eventstream_fixtures
-
08/14/2024 08:07:58 AM
rwxr-xr-x
📁
test_cases
-
08/14/2024 08:08:09 AM
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()); } }