Added general test case class.
This commit is contained in:
parent
a0c7263f63
commit
36065bc0bb
28
test/TestCase.php
Normal file
28
test/TestCase.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Base test case.
|
||||
*/
|
||||
|
||||
|
||||
namespace HPCloud;
|
||||
|
||||
require_once 'mageekguy.atoum.phar';
|
||||
require_once 'src/HPCloud/Bootstrap.php';
|
||||
|
||||
use \mageekguy\atoum;
|
||||
|
||||
class TestCase extends atoum\test {
|
||||
public function __construct(score $score = null, locale $locale = null, adapter $adapter = null) {
|
||||
|
||||
$this->setTestNamespace('Tests\Units');
|
||||
if (file_exists('test/settings.ini')) {
|
||||
$this->settings = parse_ini_file('test/settings.ini');
|
||||
}
|
||||
else {
|
||||
throw new Exception('Could not access test/settings.ini');
|
||||
}
|
||||
|
||||
parent::__construct($score, $locale, $adapter);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user