OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
LexModelsV2
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 10:55:48 AM
rwxr-xr-x
📄
LexModelsV2ClientTest.php
931 bytes
08/14/2024 10:52:44 AM
rw-r--r--
Editing: LexModelsV2ClientTest.php
Close
<?php namespace Aws\Test\LexModelsV2; use Aws\Exception\CouldNotCreateChecksumException; use Aws\Glacier\GlacierClient; use Aws\LexModelsV2\LexModelsV2Client; use Aws\Test\UsesServiceTrait; use GuzzleHttp\Psr7\NoSeekStream; use GuzzleHttp\Psr7; use PHPUnit\Framework\TestCase; /** * @covers Aws\LexModelsV2\LexModelsV2Client */ class LexModelsV2ClientTest extends TestCase { use UsesServiceTrait; public function testNoContentTypeWithoutBody() { $client = new LexModelsV2Client([ 'region' => 'us-west-2', 'version' => 'latest' ]); $command = $client->getCommand('DeleteBot', [ 'botId' => '0123456789' ]); $request = \Aws\serialize($command); // Corrected the header in a post request $contentType = $request->getHeader('Content-Type'); $this->assertEmpty($contentType); } }