Invalid domain type¶
+Invalid domain type¶
+In-class type without class¶
+-
+
- + + x() + + + +
Not In-class type with class¶
+-
+
- + + A::A + + + +
Invalid signature¶
+Invalid signature¶
-
@@ -15,7 +37,7 @@
Invalid signature -
Unresolved references¶
+Unresolved references¶
- --
+
-
-
-
diff --git a/test/log.md b/test/logging.md similarity index 72% rename from test/log.md rename to test/logging.md index fd11971..56d2e4e 100644 --- a/test/log.md +++ b/test/logging.md @@ -3,6 +3,16 @@ :::{php:namespacee} Foo ::: +# In-class type without class + +:::{php:method} x() +::: + +# Not In-class type with class + +:::{php:class} A::A +::: + # Invalid signature :::{php:method} x(); diff --git a/test/method.html b/test/method.html index f826a3a..acd6bf3 100644 --- a/test/method.html +++ b/test/method.html @@ -1,7 +1,7 @@
- Simple method¶
+Simple method¶
-
-
- Foo::test($a, ...$args)¶ +
- Foo::test($a, ...$args)¶
-
Simple test method.
-
@@ -31,7 +31,7 @@
-
diff --git a/test/ns.html b/test/ns.html index cbfc2d8..7add171 100644 --- a/test/ns.html +++ b/test/ns.html @@ -2,7 +2,7 @@
- Simple NS¶
+Simple NS¶
@@ -28,12 +28,12 @@Simple NS( ) - ¶ + ¶
- Cross linking¶
+Cross linking¶
-
@@ -49,7 +49,7 @@
Cross linking -
NS can be changed¶
+NS can be changed¶
@@ -75,12 +75,11 @@NS can be changed( ) - ¶ + ¶ - -
- Cross linking¶
+Cross linking¶
-
@@ -142,8 +141,106 @@
Cross linking +
Leading
+\
implies absolute class name¶-
+
- + + class + + + Bar\ + + + A + + + +
-
+
- + + Bar\A:: + + + simplify + + ( + ) + + +
-
+
- + + class + + + Bar\ + + + A2 + + ¶ + + +
-
+
- + + Bar\A2:: + + + simplify + + ( + ) + ¶ + + +
+ +Cross linking¶
+-
+
- + + +
-
+
+
++ A::simplify +
+
+ - + + +
- + + +
- NS must not be guessed¶
+NS must not be guessed¶
These cross references must not have a link as the target methods are not defined.
NS must not be guessed
-
-
+
-
diff --git a/test/ns.md b/test/ns.md index fc59465..2fc8baa 100644 --- a/test/ns.md +++ b/test/ns.md @@ -39,6 +39,27 @@ - {php:meth}`\Foo\Bar\A::simplify` - {php:meth}`\Bar\A::simplify` +# Leading `\` implies absolute class name + +:::{php:class} \A +::: + +:::{php:method} simplify() +::: + +:::{php:class} A2 +::: + +:::{php:method} simplify() +::: + +## Cross linking + +- {php:meth}`A::simplify` +- {php:meth}`\A::simplify` +- {php:meth}`A2::simplify` +- {php:meth}`\Bar\A2::simplify` + # NS must not be guessed :::note diff --git a/test/rst_doc.html b/test/rst_doc.html index e6dfa1a..3c26e8e 100644 --- a/test/rst_doc.html +++ b/test/rst_doc.html @@ -1,15 +1,15 @@
- Acceptance tests for PHPdomain¶
+Acceptance tests for PHPdomain¶
- Globals¶
+Globals¶
- $global_var - ¶ + ¶
-
A global variable
@@ -23,7 +23,7 @@Globals SOME_CONSTANT - ¶ + ¶
A global constant
@@ -37,14 +37,14 @@Globals VALUE - ¶ + ¶
A global constant
-
-
- in_array(needle, haystack)¶ +
- in_array(needle, haystack)¶
-
Checks for needle in haystack.
-
@@ -78,7 +78,7 @@
-
@@ -87,12 +87,12 @@
Classes DateTime - ¶ + ¶
-
Datetime class
-
-
- setDate($year, $month, $day)¶ +
- setDate($year, $month, $day)¶
-
Set the date in the datetime object
-
@@ -114,7 +114,7 @@
- setTime($hour, $minute[, $second])¶ +
- setTime($hour, $minute[, $second])¶
-
Set the time
-
@@ -148,7 +148,7 @@
-
Returns the warnings and errors
@@ -168,7 +168,7 @@Classes ATOM - ¶ + ¶
Y-m-dTH:i:sP
@@ -182,7 +182,7 @@Classes testattr - ¶ + ¶
Value of some attribute
@@ -198,14 +198,14 @@Classes OtherClass - ¶ + ¶
Another class
Classes( ) - ¶ + ¶
-
-
- OtherClass::update($arg='', $arg2=[], $arg3=[])¶ +
- OtherClass::update($arg='', $arg2=[], $arg3=[])¶
-
Update something.
@@ -221,7 +221,7 @@ -
This attribute wasn’t indented
@@ -238,7 +238,7 @@Classes NO_INDENT - ¶ + ¶
This class constant wasn’t indented
@@ -255,7 +255,7 @@Classes staticMethod - ¶ + ¶
A static method.
@@ -263,7 +263,7 @@Classes -
Exceptions¶
+Exceptions¶
-
@@ -272,7 +272,7 @@
Exceptions InvalidArgumentException - ¶ + ¶
-
Throw when you get an argument that is bad.
@@ -280,7 +280,7 @@Exceptions -
Interfaces¶
+Interfaces¶
-
@@ -289,12 +289,12 @@
Interfaces DateTimeInterface - ¶ + ¶
-
Datetime interface
-
-
- setDate($year, $month, $day)¶ +
- setDate($year, $month, $day)¶
-
Set the date in the datetime object
-
@@ -316,7 +316,7 @@
- setTime($hour, $minute[, $second])¶ +
- setTime($hour, $minute[, $second])¶
-
Set the time
-
@@ -345,7 +345,7 @@
-
Y-m-dTH:i:sP
@@ -359,7 +359,7 @@Interfaces testattr - ¶ + ¶
Value of some attribute
@@ -375,7 +375,7 @@Interfaces OtherInterface - ¶ + ¶
Another interface
@@ -383,7 +383,7 @@Interfaces -
Traits¶
+Traits¶
-
@@ -392,12 +392,12 @@
Traits LogTrait - ¶ + ¶
-
A logging trait
Interfaces ATOM - ¶ + ¶
-
Interfaces -
-
@@ -289,12 +289,12 @@
Classes nonIndentedAttribute - ¶ + ¶
-
Classes -
Globals -
Classes¶
+Classes¶
-
@@ -87,12 +87,12 @@
- More globals after classes¶
+More globals after classes¶
- Test Case - Global symbols with no namespaces¶
+Test Case - Global symbols with no namespaces¶
@@ -596,7 +596,7 @@
Test Case - Global symbols with no namespaces -
Test Case - Prefix less links¶
+Test Case - Prefix less links¶
The following links should not be prefixed with a classname.
@@ -616,9 +616,9 @@
Test Case - Prefix less links -
Namespaced elements¶
+Namespaced elements¶
-
-
- LibraryName\namespaced_function($one[, $two])¶ +
- LibraryName\namespaced_function($one[, $two])¶
-
A function in a namespace
-
@@ -647,7 +647,7 @@
-
A constant in a namespace
@@ -664,7 +664,7 @@Namespaced elements NamespaceException - ¶ + ¶
This exception is in a namespace.
@@ -681,15 +681,12 @@Namespaced elements LibraryClass - ¶ + ¶
A class in a namespace
-
-
- LibraryClass::
-
instanceMethod
@@ -698,7 +695,7 @@
Namespaced elements$foo ) - ¶ + ¶
-
An instance method
@@ -712,7 +709,7 @@Namespaced elements TEST_CONST - ¶ + ¶
Test constant
@@ -726,7 +723,7 @@Namespaced elements property - ¶ + ¶
A property!
@@ -745,7 +742,7 @@Namespaced elements staticMethod - ¶ + ¶
A static method in a namespace
@@ -762,14 +759,14 @@Namespaced elements NamespaceClass - ¶ + ¶
A class in the namespace, no indenting on children
-
-
- LibraryName\NamespaceClass::firstMethod($one, $two)¶ +
- LibraryName\NamespaceClass::firstMethod($one, $two)¶
-
A normal instance method.
@@ -785,7 +782,7 @@ -
A property
@@ -802,7 +799,7 @@Namespaced elements NAMESPACE_CONST - ¶ + ¶
Const on class in namespace
@@ -824,7 +821,7 @@Namespaced elements$foo ) - ¶ + ¶
A static method here.
@@ -844,38 +841,38 @@Namespaced elements LibraryClassFinal - ¶ + ¶
A final class
Namespaced elements property - ¶ + ¶
-
-
- publicLibraryName\LibraryClassFinal::firstMethod($one, $two)¶ +
- publicLibraryName\LibraryClassFinal::firstMethod($one, $two)¶
-
A public instance method.
-
-
- protectedLibraryName\LibraryClassFinal::secondMethod($one, $two)¶ +
- protectedLibraryName\LibraryClassFinal::secondMethod($one, $two)¶
-
A protected instance method.
-
-
- privateLibraryName\LibraryClassFinal::thirdMethod($one, $two)¶ +
- privateLibraryName\LibraryClassFinal::thirdMethod($one, $two)¶
-
A private instance method.
-
-
- staticLibraryName\LibraryClassFinal::fourthMethod($one, $two)¶ +
- staticLibraryName\LibraryClassFinal::fourthMethod($one, $two)¶
-
A static method.
-
-
- protectedfinalLibraryName\LibraryClassFinal::fifthMethod($one, $two)¶ +
- protectedfinalLibraryName\LibraryClassFinal::fifthMethod($one, $two)¶
-
A protected final method.
@@ -894,7 +891,7 @@ -
An abstract class
@@ -911,7 +908,7 @@Namespaced elements LibraryInterface - ¶ + ¶
A interface in a namespace
@@ -925,7 +922,7 @@Namespaced elements$foo ) - ¶ + ¶
Namespaced elements LibraryClassAbstract - ¶ + ¶
Namespaced elements TemplateTrait - ¶ + ¶
A trait in a namespace
@@ -957,7 +954,7 @@Namespaced elements$template ) - ¶ + ¶
Namespaced elements NS_CONST - ¶ + ¶
Namespaced elements
-
- Test Case - not including namespace¶
+Test Case - not including namespace¶
Within a namespace context you don’t need to include the namespace in links.
@@ -1144,7 +1141,7 @@
Test Case - not including namespace -
Test Case - Links with prefix trimming¶
+Test Case - Links with prefix trimming¶
All of the following links should not be prefixed with a namespace.
@@ -1198,7 +1195,7 @@
Test Case - Links with prefix trimming -
Test Case - global access¶
+Test Case - global access¶
@@ -1273,7 +1270,7 @@
Test Case - global access -
Any Cross Ref¶
+Any Cross Ref¶
@@ -1291,7 +1288,7 @@
Any Cross Ref -
Nested namespaces¶
+Nested namespaces¶
-
@@ -1303,7 +1300,7 @@
Nested namespaces NestedNamespaceException - ¶ + ¶
-
In a package
@@ -1320,7 +1317,7 @@Nested namespaces SubpackageClass - ¶ + ¶
A class in a subpackage
@@ -1337,14 +1334,14 @@Nested namespaces SubpackageInterface - ¶ + ¶
A class in a subpackage
- Test Case - Test subpackage links¶
+Test Case - Test subpackage links¶
@@ -1403,7 +1400,7 @@
Test Case - Test subpackage links -
Return Types¶
+Return Types¶
-
@@ -1415,7 +1412,7 @@
Return Types ReturningClass - ¶ + ¶
-
A class to do some returning.
@@ -1426,7 +1423,7 @@Return Types( ) - ¶ + ¶
-
@@ -1456,7 +1453,7 @@
-
-
@@ -1486,7 +1483,7 @@
-
-
@@ -1516,13 +1513,13 @@
-
- Returns:
-
-
The value of a specific global constant. # TODO link is not working without “\”
+The value of a specific global constant.
- Return type:
-
@@ -1546,7 +1543,7 @@
Return Types( ) - ¶ + ¶
-
@@ -1576,7 +1573,7 @@
-
-
@@ -1604,7 +1601,7 @@
-
-
@@ -1638,7 +1635,7 @@
-
A class to return.
@@ -1646,10 +1643,10 @@Return Types -
Enums¶
+Enums¶
- Basic Enumerations¶
+Basic Enumerations¶
-
@@ -1661,7 +1658,7 @@
Basic Enumerations Suit - ¶ + ¶
-
In playing cards, a suit is one of the categories into which the cards of a @@ -1674,7 +1671,7 @@
Basic Enumerations Hearts - ¶ + ¶
Basic Enumerations Diamonds - ¶ + ¶
-
@@ -1661,7 +1658,7 @@
Return Types ReturnedClass - ¶ + ¶
Basic Enumerations Clubs - ¶ + ¶
-
Return Types( ) - ¶ + ¶
Basic Enumerations Spades - ¶ + ¶
-
Return Types( ) - ¶ + ¶
Basic Enumerations
- Backed Enumerations¶
+Backed Enumerations¶
-
@@ -1737,7 +1734,7 @@
Backed Enumerationsstring - ¶ + ¶
-
In playing cards, a suit is one of the categories into which the cards of a @@ -1756,7 +1753,7 @@
Backed Enumerations'H' - ¶ + ¶
Backed Enumerations'D' - ¶ + ¶
Backed Enumerations'C' - ¶ + ¶
Return Types( ) - ¶ + ¶
Backed Enumerations'S' - ¶ + ¶
-
Return Types( ) - ¶ + ¶
Backed Enumerations
- Advanced Enumerations¶
+Advanced Enumerations¶
-
@@ -1837,7 +1834,7 @@
Advanced Enumerationsstring - ¶ + ¶
-
In playing cards, a suit is one of the categories into which the cards of a @@ -1856,7 +1853,7 @@
Advanced Enumerations'H' - ¶ + ¶
Advanced Enumerations'D' - ¶ + ¶
-
Return Types( ) - ¶ + ¶
Advanced Enumerations'C' - ¶ + ¶
Advanced Enumerations'S' - ¶ + ¶ @@ -1927,7 +1924,7 @@
Advanced Enumerationsstring - ¶ + ¶
Returns “red” for hearts and diamonds, “black” for clubs and spades.
@@ -1947,7 +1944,7 @@Advanced Enumerationsstring[] - ¶ + ¶
Returns an array of the values of all the cases on this enum.
@@ -1967,7 +1964,7 @@Advanced EnumerationsHearts - ¶ + ¶
An alias for
@@ -1987,7 +1984,7 @@Suit::Hearts
.Advanced EnumerationsDiamonds - ¶ + ¶
An alias for
@@ -2007,7 +2004,7 @@Suit::Diamonds
.Advanced EnumerationsClubs - ¶ + ¶
An alias for
@@ -2027,7 +2024,7 @@Suit::Clubs
.Advanced EnumerationsSpades - ¶ + ¶
An alias for
@@ -2037,9 +2034,9 @@Suit::Spades
.Advanced Enumerations -
Enumeration Links¶
+Enumeration Links¶
- Links to Basic Enumeration Example¶
+Links to Basic Enumeration Example¶
@@ -2077,7 +2074,7 @@
Links to Basic Enumeration Example -
Links to Backed Enumeration Example¶
+Links to Backed Enumeration Example¶
@@ -2115,7 +2112,7 @@
Links to Backed Enumeration Example -
Links to Advanced Enumeration Example¶
+Links to Advanced Enumeration Example¶
diff --git a/test/rst_doc.md b/test/rst_doc.md index d29c7c8..7200674 100644 --- a/test/rst_doc.md +++ b/test/rst_doc.md @@ -487,7 +487,7 @@ Return Types .. php:method:: returnGlobalConstant() - :returns: The value of a specific global constant. # TODO link is not working without "\\" + :returns: The value of a specific global constant. :returntype: SOME_CONSTANT .. php:method:: returnExceptionInstance() diff --git a/test/rst_doc2.html b/test/rst_doc2.html index cf7f78f..3a4a1b6 100644 --- a/test/rst_doc2.html +++ b/test/rst_doc2.html @@ -1,10 +1,9 @@
- Top Level Namespace¶
+Top Level Namespace¶
namespace
- -Imagine\Draw
-
+
-
class
@@ -15,13 +14,13 @@
Top Level Namespace DrawerInterface - ¶ + ¶
- Imagine\Draw\DrawerInterface::arc(PointInterface$center, BoxInterface$size, $start, $end, Color$color)¶ +
- Imagine\Draw\DrawerInterface::arc(PointInterface$center, BoxInterface$size, $start, $end, Color$color)¶
-
Draws an arc on a starting at a given x, y coordinates under a given start and end angles
-
@@ -57,7 +56,7 @@
-
@@ -70,7 +69,7 @@
Re-used namespace ThirdClass - ¶ + ¶
-
Another class in a currentmodule block
@@ -88,7 +87,7 @@Re-used namespace OtherClass - ¶ + ¶
Another class in a reused namespace
diff --git a/test/rst_index.html b/test/rst_index.html index fc236e7..d2c522f 100644 --- a/test/rst_index.html +++ b/test/rst_index.html @@ -1,7 +1,7 @@- Welcome to sphinxcontrib-phpdomain-acceptancetest’s documentation!¶
+Welcome to sphinxcontrib-phpdomain-acceptancetest’s documentation!¶
Contents:
-
@@ -81,7 +81,7 @@
-
diff --git a/test/rst_nesting_regression.html b/test/rst_nesting_regression.html index 8661e11..9d40300 100644 --- a/test/rst_nesting_regression.html +++ b/test/rst_nesting_regression.html @@ -1,7 +1,7 @@
Welcome to sphinxcontrib-phpdomain-acceptancetest’s documentation!
- Indices and tables¶
+Indices and tables¶
Top Level Namespace -
Re-used namespace¶
+Re-used namespace¶
No indexing errors or links should point to this namespace.
-
@@ -70,7 +69,7 @@
Instance of this interface is returned by
Imagine\Image\ImageInterface::draw
.-
-
-
Simple method -
Cross linking¶
+Cross linking¶
-
-
+
-