PHP code example of imjoehaines / flowdception

1. Go to this page and download the library: Download imjoehaines/flowdception 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/ */

    

imjoehaines / flowdception example snippets


   

   ehaines\Flowder\Codeception\Flowdception;

   use Imjoehaines\Flowder\Loader\PhpFileLoader;
   use Imjoehaines\Flowder\Truncator\SqliteTruncator;
   use Imjoehaines\Flowder\Persister\SqlitePersister;

   $db = new PDO(...);
   $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

   Flowdception::bootstrap(
       __DIR__ . '/_data/example.php',
       new PhpFileLoader(),
       new SqliteTruncator($db),
       new SqlitePersister($db)
   );