KnpMarkdownBundle/tests/Performance/run
2021-11-08 06:24:51 -05:00

22 lines
389 B
PHP

#!/usr/bin/env php
<?php
if (!defined('STDIN'))
{
die('This tool is designed to be run from the command line.'."\n");
}
if(!isset($_SERVER['argv'][1]))
{
die('No test name provided');
}
$name = ucfirst($_SERVER['argv'][1]);
require_once __DIR__.'/'.$name.'.php';
$class = 'Bundle\\MarkdownBundle\\Tests\\Performance\\'.$name;
$test = new $class();
print $test->run();
return 0;