Skip to content

Commit

Permalink
test only simple NS for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jul 17, 2023
1 parent e4bf98b commit afac64b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 271 deletions.
220 changes: 2 additions & 218 deletions test/unit/ns.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@
<section id="namespace-Foo">
<span id="simple-ns"/>
<h1>Simple NS<a class="headerlink" href="#namespace-Foo" title="Permalink to this heading">&#xB6;</a></h1>
<dl class="php method">
<dt class="sig sig-object php" id="Foo\X::simplify">
<span class="sig-prename descclassname">
<span class="pre">Foo\</span>
</span>
<span class="sig-name descname">
<span class="pre">simplify</span>
</span>
<span class="sig-paren">(</span>
<span class="sig-paren">)</span>
<a class="headerlink" href="#Foo\X::simplify" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<dl class="php class">
<dt class="sig sig-object php" id="Foo\A">
<em class="property">
Expand Down Expand Up @@ -49,213 +35,11 @@ <h1>Simple NS<a class="headerlink" href="#namespace-Foo" title="Permalink to thi
<p>Cross linking:</p>
<div class="highlight-default notranslate">
<div class="highlight">
<pre><span/>- :php:meth:`X::simplify`
- :php:meth:`A::simplify`
</pre>
</div>
</div>
</section>
<section id="namespace-Foo\Bar">
<span id="ns-can-be-redeclared"/>
<h1>NS can be redeclared<a class="headerlink" href="#namespace-Foo\Bar" title="Permalink to this heading">&#xB6;</a></h1>
<dl class="php method">
<dt class="sig sig-object php" id="Foo\Bar\X::simplify">
<span class="sig-prename descclassname">
<span class="pre">Foo\Bar\</span>
</span>
<span class="sig-name descname">
<span class="pre">simplify</span>
</span>
<span class="sig-paren">(</span>
<span class="sig-paren">)</span>
<a class="headerlink" href="#Foo\Bar\X::simplify" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<dl class="php class">
<dt class="sig sig-object php" id="Foo\Bar\A">
<em class="property">
<span class="pre">class</span>
</em>
<span class="sig-prename descclassname">
<span class="pre">Foo\Bar\</span>
</span>
<span class="sig-name descname">
<span class="pre">A</span>
</span>
<a class="headerlink" href="#Foo\Bar\A" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<dl class="php method">
<dt class="sig sig-object php" id="Foo\Bar\A::simplify">
<span class="sig-prename descclassname">
<span class="pre">Foo\Bar\A::</span>
</span>
<span class="sig-name descname">
<span class="pre">simplify</span>
</span>
<span class="sig-paren">(</span>
<span class="sig-paren">)</span>
<a class="headerlink" href="#Foo\Bar\A::simplify" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<span class="target" id="namespace-Bar"/>
<dl class="php class">
<dt class="sig sig-object php" id="Bar\A">
<em class="property">
<span class="pre">class</span>
</em>
<span class="sig-prename descclassname">
<span class="pre">Bar\</span>
</span>
<span class="sig-name descname">
<span class="pre">A</span>
</span>
<a class="headerlink" href="#Bar\A" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<dl class="php method">
<dt class="sig sig-object php" id="Bar\A::simplify">
<span class="sig-prename descclassname">
<span class="pre">Bar\A::</span>
</span>
<span class="sig-name descname">
<span class="pre">simplify</span>
</span>
<span class="sig-paren">(</span>
<span class="sig-paren">)</span>
<a class="headerlink" href="#Bar\A::simplify" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<p>Cross linking:</p>
<div class="highlight-default notranslate">
<div class="highlight">
<pre><span/>- :php:meth:`X::simplify`
- :php:meth:`A::simplify`
</pre>
</div>
</div>
</section>
<section id="leading-implies-absolute-class-name">
<h1>Leading <code class="docutils literal notranslate"><span class="pre">\</span></code> implies absolute class name<a class="headerlink" href="#leading-implies-absolute-class-name" title="Permalink to this heading">&#xB6;</a></h1>
<dl class="php method">
<dt class="sig sig-object php">
<span class="sig-name descname">
<span class="pre">\X::simplify()</span>
</span>
</dt>
<dd/>
</dl>
<dl class="php method">
<dt class="sig sig-object php" id="Bar\X2::A::simplify">
<span class="sig-prename descclassname">
<span class="pre">Bar\X2::</span>
</span>
<span class="sig-name descname">
<span class="pre">simplify</span>
</span>
<span class="sig-paren">(</span>
<span class="sig-paren">)</span>
<a class="headerlink" href="#Bar\X2::A::simplify" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<dl class="php class">
<dt class="sig sig-object php">
<span class="sig-name descname">
<span class="pre">\A</span>
</span>
</dt>
<dd/>
</dl>
<dl class="php method">
<dt class="sig sig-object php">
<span class="sig-prename descclassname">
<span class="pre">Bar\A::</span>
</span>
<span class="sig-name descname">
<span class="pre">simplify</span>
</span>
<span class="sig-paren">(</span>
<span class="sig-paren">)</span>
</dt>
<dd/>
</dl>
<dl class="php class">
<dt class="sig sig-object php" id="Bar\A2">
<em class="property">
<span class="pre">class</span>
</em>
<span class="sig-prename descclassname">
<span class="pre">Bar\</span>
</span>
<span class="sig-name descname">
<span class="pre">A2</span>
</span>
<a class="headerlink" href="#Bar\A2" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<dl class="php method">
<dt class="sig sig-object php" id="Bar\A2::simplify">
<span class="sig-prename descclassname">
<span class="pre">Bar\A2::</span>
</span>
<span class="sig-name descname">
<span class="pre">simplify</span>
</span>
<span class="sig-paren">(</span>
<span class="sig-paren">)</span>
<a class="headerlink" href="#Bar\A2::simplify" title="Permalink to this definition">&#xB6;</a>
</dt>
<dd/>
</dl>
<p>Cross linking:</p>
<div class="highlight-default notranslate">
<div class="highlight">
<pre><span/>- :php:meth:`X::simplify`
- :php:meth:`A::simplify`
<pre><span/>- :php:meth:`A::simplify`
- :php:meth:`\Foo\A::simplify`
</pre>
</div>
</div>
<ul class="simple">
<li>
<p>
<code class="xref php php-meth docutils literal notranslate">
<span class="pre">X::simplify</span>
</code>
</p>
</li>
<li>
<p>
<a class="reference internal" href="#Bar\A::simplify" title="Bar\A::simplify">
<code class="xref php php-meth docutils literal notranslate">
<span class="pre">A::simplify</span>
</code>
</a>
</p>
</li>
<li>
<p>
<code class="xref php php-meth docutils literal notranslate">
<span class="pre">X2::simplify</span>
</code>
</p>
</li>
<li>
<p>
<a class="reference internal" href="#Bar\A2::simplify" title="Bar\A2::simplify">
<code class="xref php php-meth docutils literal notranslate">
<span class="pre">A2::simplify</span>
</code>
</a>
</p>
</li>
</ul>
</section>
<div class="clearer"/>
</div>
57 changes: 4 additions & 53 deletions test/unit/ns.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,62 +4,13 @@ Simple NS
.. php:namespace:: Foo
.. php:method:: X::simplify()
.. php:class:: A
.. php:method:: simplify()
Cross linking::
- :php:meth:`X::simplify`
- :php:meth:`A::simplify`
NS can be redeclared
====================
.. php:namespace:: Foo\Bar
.. php:method:: X::simplify()
.. php:class:: A
.. php:method:: simplify()
.. php:namespace:: Bar
.. php:class:: A
.. php:method:: simplify()
Cross linking::
- :php:meth:`X::simplify`
- :php:meth:`A::simplify`
Leading ``\`` implies absolute class name
=========================================
.. php:method:: \X::simplify()
.. php:method:: X2::simplify()
.. php:class:: \A
.. php:method:: simplify()
.. php:class:: A2
.. php:method:: simplify()
Cross linking::
- :php:meth:`X::simplify`
- :php:meth:`A::simplify`
- :php:meth:`\X::simplify`
- :php:meth:`\A::simplify`
Cross linking
*************
- :php:meth:`X2::simplify`
- :php:meth:`A2::simplify`
* :php:meth:`A::simplify`
* :php:meth:`\Foo\A::simplify`
```

0 comments on commit afac64b

Please sign in to comment.