PHP code example of socialengine / setup-test-db
1. Go to this page and download the library: Download socialengine/setup-test-db 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/ */
socialengine / setup-test-db example snippets
// bootstrap/testing.php
$testEnv = (getenv('APP_ENV')) ? : 'testing';
passthru("php " . __DIR__ . "/../artisan db:seed-test --env={$testEnv}");
xml
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="./bootstrap/testing.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
$ php artisan config:publish socialengine/setup-test-db