App\Console\Commands\Test::runPhpunit PHP Method

runPhpunit() private method

private runPhpunit ( $files = [] )
    private function runPhpunit($files = array())
    {
        // If no files were specified we run all tests.
        if (empty($files)) {
            $files[] = '';
        }
        $this->info('Running phpunit:');
        $cmd = base_path() . '/vendor/bin/phpunit -c ' . base_path() . '/phpunit.xml';
        passthru($cmd);
    }