OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
znew1aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
EndpointV2
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/16/2024 08:32:34 AM
rwxr-xr-x
📄
EndpointDefinitionProviderTest.php
2.54 KB
08/16/2024 08:30:04 AM
rw-r--r--
📄
EndpointProviderV2Test.php
14.93 KB
08/16/2024 08:30:04 AM
rw-r--r--
📄
EndpointV2MiddlewareTest.php
8.94 KB
08/16/2024 08:30:04 AM
rw-r--r--
📄
EndpointV2SerializerTraitTest.php
2.74 KB
08/16/2024 08:30:04 AM
rw-r--r--
📄
RuleCreatorTest.php
2.02 KB
08/16/2024 08:30:04 AM
rw-r--r--
📄
RulesetEndpointTest.php
1.44 KB
08/16/2024 08:30:04 AM
rw-r--r--
📄
RulesetParameterTest.php
2.04 KB
08/16/2024 08:30:04 AM
rw-r--r--
📄
RulesetStandardLibraryTest.php
9.79 KB
08/16/2024 08:30:04 AM
rw-r--r--
📁
invalid-rules
-
08/16/2024 08:32:32 AM
rwxr-xr-x
📁
test-cases
-
08/16/2024 08:32:33 AM
rwxr-xr-x
📁
valid-rules
-
08/16/2024 08:32:33 AM
rwxr-xr-x
Editing: RulesetEndpointTest.php
Close
<?php use Aws\EndpointV2\Ruleset\RulesetEndpoint; use Yoast\PHPUnitPolyfills\TestCases\TestCase; /** * @covers Aws\EndpointV2\Ruleset\RulesetEndpoint */ class RulesetEndpointTest extends TestCase { private static $url = 'https://exmaple.com'; private static $properties = ['prop1' => 'value1', 'prop2' => 'value2']; private static $headers = ['header1' => 'value1', 'header2' => 'value2']; public function testCanBeCreated() { $endpoint = new RulesetEndpoint(self::$url, self::$properties, self::$headers); $this->assertInstanceOf(RulesetEndpoint::class, $endpoint); } public function testGetUrl() { $endpoint = new RulesetEndpoint(self::$url); $this->assertEquals(self::$url, $endpoint->getUrl()); } public function testGetProperty() { $endpoint = new RulesetEndpoint(self::$url, self::$properties); $this->assertEquals('value1', $endpoint->getProperty('prop1')); $this->assertNull($endpoint->getProperty('notAProp')); } public function testGetProperties() { $endpoint = new RulesetEndpoint(self::$url, self::$properties); $this->assertEquals(self::$properties, $endpoint->getProperties()); } public function testGetHeaders() { $endpoint = new RulesetEndpoint(self::$url, null, self::$headers); $this->assertEquals(self::$headers, $endpoint->getHeaders()); } }