parent
53944b5983
commit
7ed2c262e2
13 changed files with 199 additions and 22 deletions
@ -0,0 +1,18 @@ |
||||
<?php |
||||
|
||||
require_once('test_base.php'); |
||||
require_once('test_util.php'); |
||||
|
||||
class PreviouslyGeneratedClassTest extends TestBase |
||||
{ |
||||
######################################################### |
||||
# Test compatibility for previously unreserved words. |
||||
######################################################### |
||||
|
||||
public function testPrefixForReservedWords() |
||||
{ |
||||
$m = new \Previous\readonly(); |
||||
|
||||
$this->assertTrue(true); |
||||
} |
||||
} |
@ -0,0 +1,31 @@ |
||||
<?php |
||||
# Generated by the protocol buffer compiler. DO NOT EDIT! |
||||
# source: proto_previous/test_previously_unreserved_message.proto |
||||
|
||||
namespace Previous; |
||||
|
||||
use Google\Protobuf\Internal\GPBType; |
||||
use Google\Protobuf\Internal\RepeatedField; |
||||
use Google\Protobuf\Internal\GPBUtil; |
||||
|
||||
/** |
||||
* Generated from protobuf message <code>previous.readonly</code> |
||||
*/ |
||||
class readonly extends \Google\Protobuf\Internal\Message |
||||
{ |
||||
|
||||
/** |
||||
* Constructor. |
||||
* |
||||
* @param array $data { |
||||
* Optional. Data for populating the Message object. |
||||
* |
||||
* } |
||||
*/ |
||||
public function __construct($data = NULL) { |
||||
\GPBMetadata\ProtoPrevious\TestPreviouslyUnreservedMessage::initOnce(); |
||||
parent::__construct($data); |
||||
} |
||||
|
||||
} |
||||
|
@ -0,0 +1,5 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package previous; |
||||
|
||||
message readonly {} |
Loading…
Reference in new issue