Exemple #1
0
<?php

// Make sure Composer has been set up (for installation from Git, mostly).
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
    echo '<p>Please run <tt>composer install</tt> prior to using Tabulate.</p>';
    exit(1);
}
require __DIR__ . '/vendor/autoload.php';
\Eloquent\Asplode\Asplode::install();
new Tabulate\Session();
Exemple #2
0
<?php

use Eloquent\Asplode\Asplode;
use Eloquent\Peridot\Phony\PeridotPhony;
use Evenement\EventEmitterInterface;
use Peridot\Console\Environment;
use Peridot\Reporter\CodeCoverageReporters;
use Peridot\Reporter\ReporterInterface;
Asplode::install();
return function (EventEmitterInterface $emitter) {
    PeridotPhony::install($emitter);
    $reporter = new CodeCoverageReporters($emitter);
    $reporter->register();
    $emitter->on('peridot.start', function (Environment $environment) {
        $environment->getDefinition()->getArgument('path')->setDefault('test/suite');
    });
    $emitter->on('code-coverage.start', function (ReporterInterface $reporter) {
        $reporter->addDirectoryToWhitelist(__DIR__ . '/src');
    });
};