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

define('PHPSPEC_VERSION', '2.4.1');

if (!ini_get('date.timezone')) {
    ini_set('date.timezone', 'UTC');
}

// Ensure correct include_path for RHSCL
$inc = get_include_path();
$dirs = explode(':', $inc);
if (!in_array('/usr/share/php', $dirs)) {
    $dirs[] = '/usr/share/php';
    set_include_path(implode(':', $dirs));
}
unset ($inc, $dirs);

require_once 'PhpSpec/autoload.php';

$app = new PhpSpec\Console\Application(PHPSPEC_VERSION);
$app->run();
