PHP code example of hollodotme / phpunit-testdox-markdown
1. Go to this page and download the library: Download hollodotme/phpunit-testdox-markdown library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hollodotme / phpunit-testdox-markdown example snippets
xml
<phpunit ...>
<listeners>
<listener class="hollodotme\PHPUnit\TestListeners\TestDox\Markdown"
file="/path/to/vendor/hollodotme/phpunit-testdox-markdown/src/Markdown.php">
<arguments>
<string name="environment">Development</string>
<string name="outputFile">build/logs/TestDox.md</string>
</arguments>
</listener>
</listeners>
</phpunit>
xml
<phpunit ...>
<listeners>
<listener class="hollodotme\PHPUnit\TestListeners\TestDox\Markdown">
<arguments>
<string name="environment">Development</string>
<string name="outputFile">build/logs/TestDox.md</string>
<string name="baseNamespace">YourVendor\YourProject\Tests</string>
<array name="testStatusMap">
<element key="Passed">
<string>๐</string>
</element>
<element key="Error">
<string>๐</string>
</element>
<element key="Failure">
<string>๐</string>
</element>
<element key="Warning">
<string>๐งก</string>
</element>
<element key="Risky">
<string>๐</string>
</element>
<element key="Incomplete">
<string>๐</string>
</element>
<element key="Skipped">
<string>๐</string>
</element>
</array>
</arguments>
</listener>
</listeners>
</phpunit>