@@ -58,7 +58,7 @@ public function readShouldUseFieldDataToParseMessage(): void
5858 $ buffer = Buffer::fromContent (pack ('c2 ' , 1 , 10 ));
5959 $ schema = new Schema (
6060 new Schema \Field ('test1 ' , new Int8 ()),
61- new Schema \Field ('test2 ' , new Int8 ())
61+ new Schema \Field ('test2 ' , new Int8 ()),
6262 );
6363
6464 self ::assertSame (['test1 ' => 1 , 'test2 ' => 10 ], $ schema ->read ($ buffer ));
@@ -80,7 +80,7 @@ public function sizeOfShouldReturnTheNumberOfBytesNeededForEveryFieldInSchema():
8080 {
8181 $ schema = new Schema (
8282 new Schema \Field ('test1 ' , new Int8 ()),
83- new Schema \Field ('test2 ' , new NonNullableString ())
83+ new Schema \Field ('test2 ' , new NonNullableString ()),
8484 );
8585
8686 self ::assertSame (7 , $ schema ->sizeOf (['test1 ' => 1 , 'test2 ' => 'test ' ]));
@@ -102,7 +102,7 @@ public function validateShouldNotRaiseExceptionWhenValueIsAnArrayWithAllRequired
102102 {
103103 $ schema = new Schema (
104104 new Schema \Field ('test1 ' , new Int8 ()),
105- new Schema \Field ('test2 ' , new NullableString ())
105+ new Schema \Field ('test2 ' , new NullableString ()),
106106 );
107107
108108 $ schema ->validate (['test1 ' => 1 , 'test2 ' => 'test ' ]);
@@ -127,7 +127,7 @@ public function validateShouldRaiseExceptionWhenValueIsNull(): void
127127 {
128128 $ schema = new Schema (
129129 new Schema \Field ('test1 ' , new Int8 ()),
130- new Schema \Field ('test2 ' , new Int8 ())
130+ new Schema \Field ('test2 ' , new Int8 ()),
131131 );
132132
133133 $ this ->expectException (SchemaValidationFailure::class);
@@ -151,7 +151,7 @@ public function validateShouldRaiseExceptionWhenValueIsNotAnArray(): void
151151 {
152152 $ schema = new Schema (
153153 new Schema \Field ('test1 ' , new Int8 ()),
154- new Schema \Field ('test2 ' , new Int8 ())
154+ new Schema \Field ('test2 ' , new Int8 ()),
155155 );
156156
157157 $ this ->expectException (SchemaValidationFailure::class);
@@ -177,7 +177,7 @@ public function validateShouldRaiseExceptionWhenValueOfOneOfTheFieldsIsInvalid()
177177 {
178178 $ schema = new Schema (
179179 new Schema \Field ('test1 ' , new Int8 ()),
180- new Schema \Field ('test2 ' , new Int8 ())
180+ new Schema \Field ('test2 ' , new Int8 ()),
181181 );
182182
183183 $ this ->expectException (SchemaValidationFailure::class);
0 commit comments