Commit c00e15a 1 parent a0ae1cf commit c00e15a Copy full SHA for c00e15a
File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 14
14
"squizlabs/php_codesniffer" : " 2.*" ,
15
15
"phpdocumentor/reflection" : " ^5.0" ,
16
16
"erusev/parsedown" : " ^1.6" ,
17
- "rg /avro-php" : " ^3 .0.0"
17
+ "flix-tech /avro-php" : " ^5 .0.0"
18
18
},
19
19
"suggest" : {
20
20
"ext-grpc" : " The gRPC extension enables use of the performant gRPC transport" ,
Original file line number Diff line number Diff line change @@ -116,9 +116,6 @@ public function testSchemaManagementProtobuf(PubSubClient $client)
116
116
*/
117
117
public function testPublishWithAvroSchemaBinary (PubSubClient $ client )
118
118
{
119
- if (version_compare (phpversion (), '7.3.0 ' ) === -1 ) {
120
- $ this ->markTestSkipped ('This test can only be run on php 7.3+ ' );
121
- }
122
119
$ definition = file_get_contents (__DIR__ . '/testdata/schema.avsc ' );
123
120
$ schema = $ client ->createSchema (
124
121
uniqid (self ::TESTING_PREFIX ),
@@ -147,9 +144,10 @@ public function testPublishWithAvroSchemaBinary(PubSubClient $client)
147
144
$ encoder = new \AvroIOBinaryEncoder ($ io );
148
145
$ writer ->write ($ data , $ encoder );
149
146
150
- $ topic ->publish (new Message ([
147
+ $ messageIds = $ topic ->publish (new Message ([
151
148
'data ' => $ io ->string (),
152
149
]));
150
+ $ this ->assertNotEmpty ($ messageIds );
153
151
}
154
152
155
153
/**
You can’t perform that action at this time.
0 commit comments