aboutsummaryrefslogtreecommitdiff
path: root/php/tests/generated_phpdoc_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/tests/generated_phpdoc_test.php')
-rw-r--r--php/tests/generated_phpdoc_test.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/php/tests/generated_phpdoc_test.php b/php/tests/generated_phpdoc_test.php
index 6c1a26f7..505dafea 100644
--- a/php/tests/generated_phpdoc_test.php
+++ b/php/tests/generated_phpdoc_test.php
@@ -16,6 +16,14 @@ class GeneratedPhpdocTest extends TestBase
$this->assertContains('foo.TestMessage', $doc);
}
+ public function testPhpDocForConstructor()
+ {
+ $class = new ReflectionClass('Foo\TestMessage');
+ $doc = $class->getMethod('__construct')->getDocComment();
+ $this->assertContains('@param array $data', $doc);
+ $this->assertContains('@type int $optional_int32', $doc);
+ }
+
/**
* @dataProvider providePhpDocForGettersAndSetters
*/