Testing Atoum.

This commit is contained in:
Matt Butcher
2011-12-20 15:07:54 -06:00
parent 29e1ed27b6
commit d4bc16abf3

View File

@@ -0,0 +1,24 @@
<?php
namespace HPCloud\tests\units;
require_once 'mageekguy.atoum.phar';
require_once 'src/HPCloud/Bootstrap.php';
use \mageekguy\atoum;
class Bootstrap extends atoum\test {
public function testBasedir() {
$basedir = \HPCloud\Bootstrap::$basedir;
$this->assert->string($basedir)->match('/HPCloud/');
}
public function testAutoloader() {
\HPCloud\Bootstrap::useAutoloader();
// If we can construct a class, we are okay.
$test = new \HPCloud\Exception("TEST");
}
}