public static function setUpBeforeClass()
 {
     self::$client = new math\MathClient(new Grpc\BaseStub(getenv('GRPC_TEST_HOST'), ['update_metadata' => function ($a_hash, $client = array()) {
         $a_copy = $a_hash;
         $a_copy['foo'] = ['bar'];
         return $a_copy;
     }]));
 }
 public function setUp()
 {
     self::$client = new math\MathClient(getenv('GRPC_TEST_HOST'), ['credentials' => Grpc\ChannelCredentials::createInsecure(), 'update_metadata' => function ($a_hash, $client = []) {
         $a_copy = $a_hash;
         $a_copy['foo'] = ['bar'];
         return $a_copy;
     }]);
 }
 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'];
         return $a_copy;
     }]);
 }