mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-21 14:56:31 +02:00
22 lines
389 B
PHP
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; |