#!/usr/bin/env php
<?php

/*
 * This file is part of phpunit-smartrunner.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use iakio\phpunit\smartrunner\SmartRunner;

if (file_exists(__DIR__ . '/../../../autoload.php')) {
    // vendor/iakio/phpunit-smartrunner/bin/smartrunner
    require __DIR__ . '/../../../autoload.php';
} else {
    // bin/smartrunner
    require __DIR__ . '/../vendor/autoload.php';
}

SmartRunner::run($_SERVER['argv']);
