Commits

Mark Story  committed 37d4203

Add test cases for traits.

  • Participants
  • Parent commits 08041ce

Comments (0)

Files changed (1)

File phpdomain/test/test_doc.rst

 
     Another interface
 
+Traits
+======
+
+.. php:trait:: LogTrait
+
+    A logging trait
+
+    .. php:method:: log($level, $string)
+
+        A method description.
 
 More globals after classes
 ==========================
 
 :php:func:`OtherInterface`
 
+:php:trait:`LogTrait`
+
+:php:func:`LogTrait::log()`
+
 .. php:namespace:: LibraryName
 
 Namespaced elements
 
     An instance method
 
+.. php:trait:: TemplateTrait
+
+    A trait in a namespace
+
+    .. php:method:: render($template)
+
+    Render a template.
 
 
 Test Case - not including namespace
 
 :php:exc:`NamespaceException`
 
+:php:trait:`TemplateTrait`
+
+:php:trait:`LibraryName\\TemplateTrait`
+
+:php:func:`LibraryName\\TemplateTrait::render()`
+
 Test Case - global access
 -------------------------