|
@@ -877,4 +877,17 @@ class GeneratedClassTest extends TestBase
|
|
$m = new \Foo\PBEmpty();
|
|
$m = new \Foo\PBEmpty();
|
|
$m = new \PrefixEmpty();
|
|
$m = new \PrefixEmpty();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ #########################################################
|
|
|
|
+ # Test fluent setters.
|
|
|
|
+ #########################################################
|
|
|
|
+
|
|
|
|
+ public function testFluentSetters()
|
|
|
|
+ {
|
|
|
|
+ $m = (new TestMessage())
|
|
|
|
+ ->setOptionalInt32(1)
|
|
|
|
+ ->setOptionalInt64(2);
|
|
|
|
+ $this->assertSame(1, $m->getOptionalInt32());
|
|
|
|
+ $this->assertSame(2, $m->getOptionalInt64());
|
|
|
|
+ }
|
|
}
|
|
}
|