Testing Atoum.
This commit is contained in:
24
test/Tests/BootstrapTest.php
Normal file
24
test/Tests/BootstrapTest.php
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user