4523c9c233
descriptor.proto uses proto2 syntax, which is not ready for external usage. However, some proto3 files import descriptor.proto and cannot be used. In this PR, all references (We cheated by only removing extensions, which is enough for now. User should avoid using messages defined in descriptor.proto as field type.) to content in descriptor.proto are removed from generated files. Those that import descriptor.proto can be used like other proto files.
18 lines
282 B
PHP
18 lines
282 B
PHP
<?php
|
|
|
|
use Google\Protobuf\GPBEmpty;
|
|
|
|
class WellKnownTest extends PHPUnit_Framework_TestCase {
|
|
|
|
public function testNone()
|
|
{
|
|
$msg = new GPBEmpty();
|
|
}
|
|
|
|
public function testImportDescriptorProto()
|
|
{
|
|
$msg = new TestImportDescriptorProto();
|
|
}
|
|
|
|
}
|