@@ -11,8 +11,7 @@ |
||
11 | 11 | use MaxBeckers\AmazonAlexa\Response\Directives\Display\TextContent; |
12 | 12 | use PHPUnit\Framework\TestCase; |
13 | 13 | |
14 | -class TemplateTest extends TestCase |
|
15 | -{ |
|
14 | +class TemplateTest extends TestCase { |
|
16 | 15 | public function testSerializeTypeAndToken(): void |
17 | 16 | { |
18 | 17 | $type = 'BodyTemplate1'; |
@@ -9,8 +9,7 @@ |
||
9 | 9 | use MaxBeckers\AmazonAlexa\Response\Directives\Display\TextContent; |
10 | 10 | use PHPUnit\Framework\TestCase; |
11 | 11 | |
12 | -class TextContentTest extends TestCase |
|
13 | -{ |
|
12 | +class TextContentTest extends TestCase { |
|
14 | 13 | public function testSerializePrimaryOnly(): void |
15 | 14 | { |
16 | 15 | $primaryText = Text::create('primaryText'); |
@@ -9,8 +9,7 @@ |
||
9 | 9 | use MaxBeckers\AmazonAlexa\Response\Directives\VideoApp\VideoLaunchDirective; |
10 | 10 | use PHPUnit\Framework\TestCase; |
11 | 11 | |
12 | -class VideoAppTest extends TestCase |
|
13 | -{ |
|
12 | +class VideoAppTest extends TestCase { |
|
14 | 13 | public function testMetadata(): void |
15 | 14 | { |
16 | 15 | $meta = Metadata::create(); |
@@ -10,8 +10,7 @@ |
||
10 | 10 | use MaxBeckers\AmazonAlexa\Response\CardImage; |
11 | 11 | use PHPUnit\Framework\TestCase; |
12 | 12 | |
13 | -class CardTest extends TestCase |
|
14 | -{ |
|
13 | +class CardTest extends TestCase { |
|
15 | 14 | public function testSimpleCard(): void |
16 | 15 | { |
17 | 16 | $title = 'title'; |
@@ -10,8 +10,7 @@ |
||
10 | 10 | use MaxBeckers\AmazonAlexa\Response\OutputSpeech; |
11 | 11 | use PHPUnit\Framework\TestCase; |
12 | 12 | |
13 | -class ResponseHelperTest extends TestCase |
|
14 | -{ |
|
13 | +class ResponseHelperTest extends TestCase { |
|
15 | 14 | private const RESPOND = 'Respond'; |
16 | 15 | private const REPROMPT = 'Reprompt'; |
17 | 16 |
@@ -9,8 +9,7 @@ |
||
9 | 9 | use MaxBeckers\AmazonAlexa\Response\CanFulfill\CanFulfillSlot; |
10 | 10 | use PHPUnit\Framework\TestCase; |
11 | 11 | |
12 | -class CanFulfillResponseBodyTest extends TestCase |
|
13 | -{ |
|
12 | +class CanFulfillResponseBodyTest extends TestCase { |
|
14 | 13 | public function testJsonSerialize(): void |
15 | 14 | { |
16 | 15 | $slot1 = CanFulfillSlot::create(CanFulfillSlot::CAN_UNDERSTAND_YES, CanFulfillSlot::CAN_FULFILL_YES); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $requestValidator = new RequestValidator(RequestValidator::TIMESTAMP_VALID_TOLERANCE_SECONDS, $client); |
55 | 55 | |
56 | 56 | $client->method('request') |
57 | - ->willReturn($apiResponse); |
|
57 | + ->willReturn($apiResponse); |
|
58 | 58 | $apiResponse->method('getStatusCode') |
59 | 59 | ->willReturn(200); |
60 | 60 | $apiResponse->method('getBody') |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $requestValidator = new RequestValidator(RequestValidator::TIMESTAMP_VALID_TOLERANCE_SECONDS, $client); |
83 | 83 | |
84 | 84 | $client->method('request') |
85 | - ->willReturn($apiResponse); |
|
85 | + ->willReturn($apiResponse); |
|
86 | 86 | $apiResponse->method('getStatusCode') |
87 | 87 | ->willReturn(400); |
88 | 88 |
@@ -14,8 +14,7 @@ |
||
14 | 14 | use Psr\Http\Message\ResponseInterface; |
15 | 15 | use Psr\Http\Message\StreamInterface; |
16 | 16 | |
17 | -class RequestValidatorTest extends TestCase |
|
18 | -{ |
|
17 | +class RequestValidatorTest extends TestCase { |
|
19 | 18 | public function testInvalidRequestTime(): void |
20 | 19 | { |
21 | 20 | $requestValidator = new RequestValidator(); |
@@ -8,8 +8,7 @@ |
||
8 | 8 | use MaxBeckers\AmazonAlexa\Request\Request\System\ExceptionEncounteredRequest; |
9 | 9 | use PHPUnit\Framework\TestCase; |
10 | 10 | |
11 | -class ExceptionEncounteredRequestTest extends TestCase |
|
12 | -{ |
|
11 | +class ExceptionEncounteredRequestTest extends TestCase { |
|
13 | 12 | public function testExceptionEncounteredRequest(): void |
14 | 13 | { |
15 | 14 | $requestBody = file_get_contents(__DIR__ . '/RequestData/systemError.json'); |
@@ -12,8 +12,7 @@ |
||
12 | 12 | use MaxBeckers\AmazonAlexa\Request\Request\AudioPlayer\PlaybackStoppedRequest; |
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | 14 | |
15 | -class AudioPlayerRequestsTest extends TestCase |
|
16 | -{ |
|
15 | +class AudioPlayerRequestsTest extends TestCase { |
|
17 | 16 | public function testPlaybackStartedRequest(): void |
18 | 17 | { |
19 | 18 | $requestBody = file_get_contents(__DIR__ . '/RequestData/audioplayerPlaybackStarted.json'); |