PHP code example of ruano_a / selective-test-isolation-bundle

1. Go to this page and download the library: Download ruano_a/selective-test-isolation-bundle 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/ */

    

ruano_a / selective-test-isolation-bundle example snippets


if (in_array($env, ['dev', 'test'])) {
    ...
    if ($env === 'test') {
        $bundles[] = new ruano_a\SelectiveTestIsolationBundle\SelectiveTestIsolationBundle();
    }
}

return [
    ...,
    ruano_a\SelectiveTestIsolationBundle\SelectiveTestIsolationBundle::class => ['test' => true],
];

    class myTestClass extends IsolableKernelTestCase
    {
    ...

    /**
     * @Rollback
     */
    public function testFunctionChangingTheDatabase()
    {
    ...