<?php

error_reporting(E_ALL);

$file = __DIR__ . '/../vendor/autoload.php';
if (file_exists($file)) {
    $loader = require $file;
}

if (!isset($loader)) {
    throw new \RuntimeException('Cannot find vendor/autoload.php');
}

/** @var \Composer\Autoload\ClassLoader $loader */
$loader->add('SqueezeTest\\', __DIR__);

unset($file, $loader);

$binFile = './bin/squeeze';
$minFile = './min.php';

echo shell_exec($binFile . ' ' . $minFile . ' --source=src,vendor/symfony,vendor/doctrine/*/src,vendor/zendframework/*/src,vendor/widmogrod/*/src');
echo shell_exec('php ' . $minFile);

<?php

error_reporting(E_ALL);

$file = __DIR__ . '/../vendor/autoload.php';
if (file_exists($file)) {
    $loader = require $file;
}

if (!isset($loader)) {
    throw new \RuntimeException('Cannot find vendor/autoload.php');
}

/** @var \Composer\Autoload\ClassLoader $loader */
$loader->add('SqueezeTest\\', __DIR__);

unset($file, $loader);

$binFile = './bin/squeeze';
$minFile = './min.php';

echo shell_exec($binFile . ' ' . $minFile . ' --source=src,vendor/symfony,vendor/doctrine,vendor/zendframework,vendor/widmogrod');
echo shell_exec('php ' . $minFile);

Sort namespaces php env independently
Sort namespaces php env independently
