Commits

Takeshi Komiya  committed 28bf1a7

Add testcases for functions

  • Participants
  • Parent commits 9fc65ab

Comments (0)

Files changed (6)

File tests/inputs/class.php

   private $attr5;
 }
 ?>
-

File tests/inputs/function.php

+<?php
+
+/**
+ * here is docs for doc_hello function
+ */
+function doc_hello() {
+}
+
+function undoc_hello() {
+}
+
+/**
+ * @access private
+ */
+function private_access_hello() {
+}
+?>

File tests/inputs/phpautomodule/function_basic.rst

+.. phpautomodule::
+   :filename: inputs/function.php

File tests/inputs/phpautomodule/function_undoc.rst

+.. phpautomodule::
+   :filename: inputs/function.php
+   :undoc-members:

File tests/outputs/phpautomodule/function_basic.rst

+.. php:function:: doc_hello()
+
+   here is docs for doc_hello function
+

File tests/outputs/phpautomodule/function_undoc.rst

+.. php:function:: doc_hello()
+
+   here is docs for doc_hello function
+
+.. php:function:: undoc_hello()
+