Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Add test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
harto committed Sep 18, 2012
1 parent 3b620df commit 38a20c0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/all.php
@@ -0,0 +1,27 @@
#!/usr/bin/env php
<?php

require_once(__DIR__.'/../vendor/autoload.php');
require_once(__DIR__.'/../vendor/lastcraft/simpletest/autorun.php');

// FIXME: autoload helper classes
require_once(__DIR__.'/RightSignature/UnitTestCase.php');

class RightSignatureTestCollector extends SimplePatternCollector
{
protected function handle(&$test, $filename)
{
if (is_dir($filename))
$test->collect($filename, $this);
else
parent::handle($test, $filename);
}
}

class RightSignatureTests extends TestSuite
{
public function __construct()
{
$this->collect(__DIR__, new RightSignatureTestCollector('#Test\.php$#'));
}
}

0 comments on commit 38a20c0

Please sign in to comment.