PHP code example of hughsaffar / laravel-test-trap

1. Go to this page and download the library: Download hughsaffar/laravel-test-trap 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/ */

    

hughsaffar / laravel-test-trap example snippets


return [
    'ignore_migrations_queries' => env('TEST_TRAP_IGNORE_MIGRATIONS_QUERIES', true),
    'environment_name' => env('TEST_TRAP_ENVIRONMENT', 'testing'),
];
bash
php artisan vendor:publish --provider="TestTrap\TestTrapServiceProvider" --tag="config"
 xml
<extensions>
    <extension class="TestTrap\TestTrapExtension">
        <arguments>
            <array>
                <element key="speed">
                    <double>500</double>
                </element>
                <element key="queryCalled">
                    <integer>10</integer>
                </element>
                <element key="querySpeed">
                    <double>1000</double>
                </element>
            </array>
        </arguments>
    </extension>
</extensions>
xml
<php>
   ...
   <server name="TEST_TRAP_DISABLE" value="true"/>
   ...
</php>