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>