From 993e1866df547532a05ab6db76c9ff5aefc9a3df Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Wed, 25 Mar 2009 00:39:08 -0400 Subject: Imported Upstream version 5.2.6 --- .../ReflectionMethod_getDocComment_basic.phpt | 115 +++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt (limited to 'ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt') diff --git a/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt b/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt new file mode 100644 index 000000000..542ddf014 --- /dev/null +++ b/ext/reflection/tests/ReflectionMethod_getDocComment_basic.phpt @@ -0,0 +1,115 @@ +--TEST-- +ReflectionMethod::getDocComment() +--SKIPIF-- + +--FILE-- +getMethods(); + foreach ($rms as $rm) { + echo "\n\n---> Doc comment for $class::" . $rm->getName() . "():\n"; + var_dump($rm->getDocComment()); + } +} +?> +--EXPECTF-- + + +---> Doc comment for A::f(): +string(%d) "/** + * My Doc Comment for A::f + */" + + +---> Doc comment for A::privf(): +string(%d) "/** + * My Doc Comment for A::privf + */" + + +---> Doc comment for A::protStatf(): +string(%d) "/** My Doc Comment for A::protStatf */" + + +---> Doc comment for A::finalStatPubf(): +string(%d) "/** + + * My Doc Comment for A::finalStatPubf + */" + + +---> Doc comment for B::f(): +bool(false) + + +---> Doc comment for B::privf(): +string(%d) "/** * + * My Doc Comment for B::privf + */" + + +---> Doc comment for B::protStatf(): +string(%d) "/** My Doc Comment for B::protStatf + + + + + */" + + +---> Doc comment for B::finalStatPubf(): +string(%d) "/** + + * My Doc Comment for A::finalStatPubf + */" \ No newline at end of file -- cgit v1.2.3