diff options
Diffstat (limited to 'tests/plugins/grpc/testdata')
12 files changed, 0 insertions, 226 deletions
diff --git a/tests/plugins/grpc/testdata/import/Import/ServiceInterface.php b/tests/plugins/grpc/testdata/import/Import/ServiceInterface.php deleted file mode 100644 index 13e58daf..00000000 --- a/tests/plugins/grpc/testdata/import/Import/ServiceInterface.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -# Generated by the protocol buffer compiler (spiral/php-grpc). DO NOT EDIT! -# source: import/service.proto - -namespace Import; - -use Spiral\GRPC; -use Import\Sub; - -interface ServiceInterface extends GRPC\ServiceInterface -{ - // GRPC specific service name. - public const NAME = "import.Service"; - - /** - * @param GRPC\ContextInterface $ctx - * @param Message $in - * @return Message - * - * @throws GRPC\Exception\InvokeException - */ - public function SimpleMethod(GRPC\ContextInterface $ctx, Message $in): Message; - - /** - * @param GRPC\ContextInterface $ctx - * @param Sub\Message $in - * @return Sub\Message - * - * @throws GRPC\Exception\InvokeException - */ - public function ImportMethod(GRPC\ContextInterface $ctx, Sub\Message $in): Sub\Message; -} diff --git a/tests/plugins/grpc/testdata/import/service.proto b/tests/plugins/grpc/testdata/import/service.proto deleted file mode 100644 index 5d888f09..00000000 --- a/tests/plugins/grpc/testdata/import/service.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; - -package import; - -import "import/sub/message.proto"; - -service Service { - rpc SimpleMethod (Message) returns (Message) { - } - - rpc ImportMethod (import.sub.Message) returns (import.sub.Message) { - } -} - -message Message { - int64 id = 1; -}
\ No newline at end of file diff --git a/tests/plugins/grpc/testdata/import/sub/message.proto b/tests/plugins/grpc/testdata/import/sub/message.proto deleted file mode 100644 index 1db0313b..00000000 --- a/tests/plugins/grpc/testdata/import/sub/message.proto +++ /dev/null @@ -1,7 +0,0 @@ -syntax = "proto3"; - -package import.sub; - -message Message { - int64 id = 1; -}
\ No newline at end of file diff --git a/tests/plugins/grpc/testdata/import_custom/Test/CustomImport/ServiceInterface.php b/tests/plugins/grpc/testdata/import_custom/Test/CustomImport/ServiceInterface.php deleted file mode 100644 index b010ce4f..00000000 --- a/tests/plugins/grpc/testdata/import_custom/Test/CustomImport/ServiceInterface.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -# Generated by the protocol buffer compiler (spiral/php-grpc). DO NOT EDIT! -# source: import_custom/service.proto - -namespace Test\CustomImport; - -use Spiral\GRPC; -use Test\CustomImport\Message; - -interface ServiceInterface extends GRPC\ServiceInterface -{ - // GRPC specific service name. - public const NAME = "import.Service"; - - /** - * @param GRPC\ContextInterface $ctx - * @param Message $in - * @return Message - * - * @throws GRPC\Exception\InvokeException - */ - public function SimpleMethod(GRPC\ContextInterface $ctx, Message $in): Message; - - /** - * @param GRPC\ContextInterface $ctx - * @param Message\Message $in - * @return Message\Message - * - * @throws GRPC\Exception\InvokeException - */ - public function ImportMethod(GRPC\ContextInterface $ctx, Message\Message $in): Message\Message; -} diff --git a/tests/plugins/grpc/testdata/import_custom/service.proto b/tests/plugins/grpc/testdata/import_custom/service.proto deleted file mode 100644 index 872aaae3..00000000 --- a/tests/plugins/grpc/testdata/import_custom/service.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; - -package import; - -option php_namespace = "Test\\CustomImport"; - -import "import_custom/sub/message.proto"; - -service Service { - rpc SimpleMethod (Message) returns (Message) { - } - - rpc ImportMethod (import.sub.Message) returns (import.sub.Message) { - } -} - -message Message { - int64 id = 1; -}
\ No newline at end of file diff --git a/tests/plugins/grpc/testdata/import_custom/sub/message.proto b/tests/plugins/grpc/testdata/import_custom/sub/message.proto deleted file mode 100644 index 5d722ca3..00000000 --- a/tests/plugins/grpc/testdata/import_custom/sub/message.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package import.sub; -option php_namespace = "Test\\CustomImport\\Message"; - - -service Service { - rpc AnotherMethod (Message) returns (Message) { - } -} - -message Message { - int64 id = 1; -}
\ No newline at end of file diff --git a/tests/plugins/grpc/testdata/php_namespace/Test/CustomNamespace/ServiceInterface.php b/tests/plugins/grpc/testdata/php_namespace/Test/CustomNamespace/ServiceInterface.php deleted file mode 100644 index 2090ba97..00000000 --- a/tests/plugins/grpc/testdata/php_namespace/Test/CustomNamespace/ServiceInterface.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -# Generated by the protocol buffer compiler (spiral/php-grpc). DO NOT EDIT! -# source: php_namespace/service.proto - -namespace Test\CustomNamespace; - -use Spiral\GRPC; - -interface ServiceInterface extends GRPC\ServiceInterface -{ - // GRPC specific service name. - public const NAME = "testPhpNamespace.Service"; - - /** - * @param GRPC\ContextInterface $ctx - * @param SimpleMessage $in - * @return SimpleMessage - * - * @throws GRPC\Exception\InvokeException - */ - public function SimpleMethod(GRPC\ContextInterface $ctx, SimpleMessage $in): SimpleMessage; -} diff --git a/tests/plugins/grpc/testdata/php_namespace/service.proto b/tests/plugins/grpc/testdata/php_namespace/service.proto deleted file mode 100644 index a3bfa3c0..00000000 --- a/tests/plugins/grpc/testdata/php_namespace/service.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; - -package testPhpNamespace; - -option php_namespace = "Test\\CustomNamespace"; - -service Service { - rpc SimpleMethod (SimpleMessage) returns (SimpleMessage) { - } -} - -message SimpleMessage { - int32 id = 1; - string name = 2; -}
\ No newline at end of file diff --git a/tests/plugins/grpc/testdata/simple/TestSimple/SimpleServiceInterface.php b/tests/plugins/grpc/testdata/simple/TestSimple/SimpleServiceInterface.php deleted file mode 100644 index f9e84bf7..00000000 --- a/tests/plugins/grpc/testdata/simple/TestSimple/SimpleServiceInterface.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -# Generated by the protocol buffer compiler (spiral/php-grpc). DO NOT EDIT! -# source: simple/simple.proto - -namespace TestSimple; - -use Spiral\GRPC; - -interface SimpleServiceInterface extends GRPC\ServiceInterface -{ - // GRPC specific service name. - public const NAME = "testSimple.SimpleService"; - - /** - * @param GRPC\ContextInterface $ctx - * @param SimpleMessage $in - * @return SimpleMessage - * - * @throws GRPC\Exception\InvokeException - */ - public function SimpleMethod(GRPC\ContextInterface $ctx, SimpleMessage $in): SimpleMessage; -} diff --git a/tests/plugins/grpc/testdata/simple/simple.proto b/tests/plugins/grpc/testdata/simple/simple.proto deleted file mode 100644 index aca3c1d9..00000000 --- a/tests/plugins/grpc/testdata/simple/simple.proto +++ /dev/null @@ -1,13 +0,0 @@ -syntax = "proto3"; - -package testSimple; - -service SimpleService { - rpc SimpleMethod (SimpleMessage) returns (SimpleMessage) { - } -} - -message SimpleMessage { - int32 id = 1; - string name = 2; -}
\ No newline at end of file diff --git a/tests/plugins/grpc/testdata/use_empty/Test/ServiceInterface.php b/tests/plugins/grpc/testdata/use_empty/Test/ServiceInterface.php deleted file mode 100644 index fe6d345a..00000000 --- a/tests/plugins/grpc/testdata/use_empty/Test/ServiceInterface.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -# Generated by the protocol buffer compiler (spiral/php-grpc). DO NOT EDIT! -# source: use_empty/service.proto - -namespace Test; - -use Spiral\GRPC; -use Google\Protobuf; - -interface ServiceInterface extends GRPC\ServiceInterface -{ - // GRPC specific service name. - public const NAME = "test.Service"; - - /** - * @param GRPC\ContextInterface $ctx - * @param Protobuf\GPBEmpty $in - * @return Protobuf\GPBEmpty - * - * @throws GRPC\Exception\InvokeException - */ - public function Test(GRPC\ContextInterface $ctx, Protobuf\GPBEmpty $in): Protobuf\GPBEmpty; -} diff --git a/tests/plugins/grpc/testdata/use_empty/service.proto b/tests/plugins/grpc/testdata/use_empty/service.proto deleted file mode 100644 index 8c68d8d3..00000000 --- a/tests/plugins/grpc/testdata/use_empty/service.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - -package test; - -import "google/protobuf/empty.proto"; - -service Service { - rpc Test (google.protobuf.Empty) returns (google.protobuf.Empty) { - } -}
\ No newline at end of file |