protobuf/php/tests/well_known_test.php
Paul Yang 2286e5f4d0 Rename Empty to GPBEmpty in php generated file. (#2379)
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.
2016-11-21 12:01:51 -08:00

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();
}
}