PHP code example of charonlab / testing

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

    

charonlab / testing example snippets

json
{
  "$schema":"./vendor/phpbench/phpbench/phpbench.schema.json",

  "runner.bootstrap": "./vendor/autoload.php",
  "runner.path": "tests/Performance",
  "runner.progress": "plain",
  "runner.iterations": 20,
  "runner.revs": 1000,
  "runner.file_pattern": "*Bench.php",
  "report.generators": {

    "compressed": {
      "title": "Charon Container Benchmark Tests",
      "generator": "expression",
      "cols": [ "benchmark", "subject", "mem_peak", "mode", "mean", "best", "worst" ]
    }
  },

  "core.extensions": [
    "PhpBench\\Extensions\\XDebug\\XDebugExtension"
  ]
}