aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2015-11-02 09:22:10 -0800
committerGravatar vjpai <vpai@google.com>2015-11-02 09:22:10 -0800
commit11537dc71c2ceabf0a1e7f999f6c0e97f90c9f24 (patch)
tree988df3540106ca35309f2cfc8f91e14474e03564 /src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php
parent72a633213815f19ac04b51331287e3f7b075dcc1 (diff)
parent89ea0c78151b5bdc4c9236ae7100a7b97b32e499 (diff)
Merge remote-tracking branch 'upstream/master' into protosplit
Diffstat (limited to 'src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php')
-rw-r--r--src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php b/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php
index 09c09cf353..5a20e684c7 100644
--- a/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php
+++ b/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php
@@ -31,21 +31,25 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
-require_once dirname(__FILE__) . '/AbstractGeneratedCodeTest.php';
+require_once dirname(__FILE__).'/AbstractGeneratedCodeTest.php';
-class GeneratedCodeWithCallbackTest extends AbstractGeneratedCodeTest {
- public function setUp() {
- self::$client = new math\MathClient(
- getenv('GRPC_TEST_HOST'), ['update_metadata' =>
- function($a_hash,
- $client = array()) {
- $a_copy = $a_hash;
- $a_copy['foo'] = ['bar'];
- return $a_copy;
- }]);
- }
+class GeneratedCodeWithCallbackTest extends AbstractGeneratedCodeTest
+{
+ public function setUp()
+ {
+ self::$client = new math\MathClient(
+ getenv('GRPC_TEST_HOST'),
+ ['update_metadata' => function ($a_hash,
+ $client = []) {
+ $a_copy = $a_hash;
+ $a_copy['foo'] = ['bar'];
- public static function tearDownAfterClass() {
- self::$client->close();
- }
+ return $a_copy;
+ }]);
+ }
+
+ public static function tearDownAfterClass()
+ {
+ self::$client->close();
+ }
}