Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit ca6deee

Browse files
author
Takashi Matsuo
committed
Added an end to end test for grpc extension.
1 parent efeb7c6 commit ca6deee

File tree

10 files changed

+10533
-4
lines changed

10 files changed

+10533
-4
lines changed

e2e/EndToEndTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,11 @@ public function testSession()
146146
'session.php status code');
147147
$this->assertEquals('1', $body = $resp->getBody()->getContents());
148148
}
149+
150+
public function testGrpcPubsub()
151+
{
152+
$resp = $this->client->get('grpc_pubsub.php');
153+
$this->assertEquals('200', $resp->getStatusCode(),
154+
'grpc_pubsub.php status code');
155+
}
149156
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"silex/silex": "^1.3",
4-
"php": "^5.6"
3+
"php": "^5.6",
4+
"silex/silex": "^1.3"
55
}
66
}

testapps/php56_e2e/composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"require": {
3-
"silex/silex": "^1.3",
4-
"php": "^5.6"
3+
"php": "^5.6",
4+
"google/auth": "dev-master",
5+
"grpc/grpc": "dev-release-0_13",
6+
"silex/silex": "^1.3"
7+
},
8+
"autoload": {
9+
"classmap": ["web"]
510
}
611
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
// DO NOT EDIT! Generated by Protobuf-PHP protoc plugin 1.0
3+
// Source: google/api/annotations.proto
4+
// Date: 2016-03-02 22:35:01
5+
6+
namespace {
7+
\google\protobuf\MethodOptions::extension(function(){
8+
// OPTIONAL MESSAGE google\api\http = 72295728
9+
$f = new \DrSlump\Protobuf\Field();
10+
$f->number = 72295728;
11+
$f->name = "google\api\http";
12+
$f->type = \DrSlump\Protobuf::TYPE_MESSAGE;
13+
$f->rule = \DrSlump\Protobuf::RULE_OPTIONAL;
14+
$f->reference = '\google\api\HttpRule';
15+
return $f;
16+
});
17+
}

0 commit comments

Comments
 (0)