mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-03 06:22:40 +02:00
22 lines
389 B
Plaintext
22 lines
389 B
Plaintext
|
#!/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;
|