<?php

$test_files = glob(dirname(__FILE__)."/unit/*Test.php");
foreach($test_files as $test_file)
{
  include($test_file);
}
<?php
require_once(dirname(__FILE__).'/../lib/external/lime.php');

$tests = new lime_harness(array('verbose'=>true));
$tests->register_glob(dirname(__FILE__).'/unit/*Test.php');
$tests->run();
if ($tests->stats['failed_tests'])
{
  exit(1);
}

Rewrite test runner to use lime_harness
Rewrite test runner to use lime_harness

Two reasons:
* display a summary at the end
* we are easily able to exit with a return code >1 to indicate something
went wrong, which is useful for simple continuous integration systems
