In php, class name cannot be "Empty". Modified code generator to (#2375) generate GPBEmpty instead (for google.protobuf.Empty only). Also change runtime code to work with the new generated code accordingly.
13 lines
214 B
PHP
13 lines
214 B
PHP
<?php
|
|
|
|
require_once("google/protobuf/empty.pb.php");
|
|
|
|
use Google\Protobuf\GPBEmpty;
|
|
|
|
class WellKnownTest extends PHPUnit_Framework_TestCase {
|
|
|
|
public function testNone() {
|
|
$msg = new GPBEmpty();
|
|
}
|
|
|
|
}
|