diff --git a/test/unit/ns.html b/test/unit/ns.html index bf0c670..e9f48bf 100644 --- a/test/unit/ns.html +++ b/test/unit/ns.html @@ -47,5 +47,204 @@

Cross linking + +

NS can be changed

+
+
+ + class + + + Foo\Bar\ + + + A + + +
+
+
+
+
+ + Foo\Bar\A:: + + + simplify + + ( + ) + +
+
+
+ +
+
+ + class + + + Bar\ + + + A + + +
+
+
+
+
+ + Bar\A:: + + + simplify + + ( + ) + +
+
+
+
+

Cross linking

+ +
+ +
+

Leading \ implies absolute class name

+
+
+ + \A + +
+
+
+
+
+ + Bar\A:: + + + simplify + + ( + ) +
+
+
+
+
+ + class + + + Bar\ + + + A2 + + +
+
+
+
+
+ + Bar\A2:: + + + simplify + + ( + ) + +
+
+
+
+

Cross linking

+ +
+
+
+

NS must not be guessed

+
+

These cross references must not have a link as the target methods are not defined.

+
+
    +
  • +

    + + \A2::simplify + +

    +
  • +
+ +
    +
  • +

    + + A::simplify + +

    +
  • +
+
diff --git a/test/unit/ns.md b/test/unit/ns.md index 1ebfe4d..f15600e 100644 --- a/test/unit/ns.md +++ b/test/unit/ns.md @@ -12,3 +12,62 @@ ## Cross linking - {php:meth}`A::simplify` + +# NS can be changed + +:::{php:namespace} Foo\Bar +::: + +:::{php:class} A +::: + +:::{php:method} simplify() +::: + +:::{php:namespace} Bar +::: + +:::{php:class} A +::: + +:::{php:method} simplify() +::: + +## Cross linking + +- {php:meth}`\Foo\Bar::simplify` +- {php:meth}`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 +These cross references must not have a link as the target methods are not defined. +::: + +- {php:meth}`\A2::simplify` + +:::{php:namespace} Bar2 +::: + +- {php:meth}`A::simplify`