aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests/interop
diff options
context:
space:
mode:
authorGravatar mlumish <mlumish@google.com>2015-01-02 14:59:16 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-05 17:43:10 -0800
commit156e67d417f4569b61241793156b8b17d2960dbe (patch)
tree009e4789acd666f1b43415b4c6e8cefa51b7696e /src/php/tests/interop
parent8f91163795e5858fa31d05f25543139996b13b10 (diff)
Added PSR-4 compatible autoloader as defined at http://www.php-fig.org/psr/psr-4/.
SurfaceActiveCall.php was split into four files. Each file must contain exactly one PHP class because of the following line in the spec: > The terminating class name corresponds to a file name ending in .php. The file name MUST match the case of the terminating class name. Other changes were made to correctly import the library using the autoloader. Change on 2015/01/02 by mlumish <mlumish@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83150065
Diffstat (limited to 'src/php/tests/interop')
-rwxr-xr-xsrc/php/tests/interop/interop_client.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/php/tests/interop/interop_client.php b/src/php/tests/interop/interop_client.php
index 9810c86272..43da47fd53 100755
--- a/src/php/tests/interop/interop_client.php
+++ b/src/php/tests/interop/interop_client.php
@@ -1,7 +1,5 @@
<?php
-require __DIR__ . '/../../lib/Grpc/ActiveCall.php';
-require __DIR__ . '/../../lib/Grpc/SurfaceActiveCall.php';
-require __DIR__ . '/../../lib/Grpc/BaseStub.php';
+require_once realpath(dirname(__FILE__) . '/../../lib/autoload.php');
require 'DrSlump/Protobuf.php';
\DrSlump\Protobuf::autoload();
require 'empty.php';