-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix doc-en GH-3197 - Incorrect void return type appended (#100)
* Fix doc-en GH_3197 Fix void return type appended on void parameter list and add test for this fix. Fix tests with incorrect expected output. * Replace hardcoded html file extension for void type with the appropriate method call --------- Co-authored-by: haszi <haszika80@gmail.com>
- Loading branch information
Showing
9 changed files
with
92 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--TEST-- | ||
Bug doc-en GH-3197 | ||
--FILE-- | ||
<?php | ||
namespace phpdotnet\phd; | ||
|
||
require_once __DIR__ . "/../setup.php"; | ||
require_once __DIR__ . "/TestChunkedXHTML.php"; | ||
|
||
$formatclass = "TestChunkedXHTML"; | ||
$xml_file = __DIR__ . "/data/Bug_doc-en_GH-3197.xml"; | ||
|
||
$opts = array( | ||
"index" => true, | ||
"xml_root" => dirname($xml_file), | ||
"xml_file" => $xml_file, | ||
"output_dir" => __DIR__ . "/output/", | ||
); | ||
|
||
$extra = array( | ||
"lang_dir" => __PHDDIR__ . "phpdotnet/phd/data/langs/", | ||
"phpweb_version_filename" => dirname($xml_file) . '/version.xml', | ||
"phpweb_acronym_filename" => dirname($xml_file) . '/acronyms.xml', | ||
); | ||
|
||
$render = new TestRender($formatclass, $opts, $extra); | ||
|
||
if (Index::requireIndexing() && !file_exists($opts["output_dir"])) { | ||
mkdir($opts["output_dir"], 0755); | ||
} | ||
|
||
$render->run(); | ||
?> | ||
--EXPECT-- | ||
Filename: bug_doc-en_GH-3179.html | ||
Content: | ||
<div id="bug_doc-en_GH-3179" class="refentry"> | ||
<div class="refsect1 unknown-1" id="refsect1-bug_doc-en_GH-3179-unknown-1"> | ||
<div class="methodsynopsis dc-description"><span class="methodname"><strong>method_name</strong></span>(): <span class="type"><a href="language.types.void.html" class="type void">void</a></span></div> | ||
|
||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<refentry xml:id="bug_doc-en_GH-3179"> | ||
<refsect1> | ||
<methodsynopsis> | ||
<type>void</type><methodname>method_name</methodname> | ||
<void/> | ||
</methodsynopsis> | ||
</refsect1> | ||
</refentry> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.