openstack-sdk-php/test/Tests/BootstrapTest.php
Matt Butcher 3a824f5f0d Renamed classes to follow PHPUnit convention.
More Atoum->PHPUnit migration.
2012-01-03 16:49:18 -06:00

41 lines
777 B
PHP

<?php
/**
* @file
*
* Unit tests for the Bootstrap.
*/
namespace HPCloud\Tests;
require_once 'src/HPCloud/Bootstrap.php';
require_once 'test/TestCase.php';
class BootstrapTest extends \HPCloud\Tests\TestCase {
/**
* Canary test.
*/
public function testSettings() {
$this->assertTrue(!empty(self::$settings));
}
/**
* Test the BaseDir.
*/
public function testBasedir() {
$basedir = \HPCloud\Bootstrap::$basedir;
$this->assertRegExp('/HPCloud/', $basedir);
}
/**
* Test the autoloader.
*/
public function testAutoloader() {
\HPCloud\Bootstrap::useAutoloader();
// If we can construct a class, we are okay.
$test = new \HPCloud\Exception("TEST");
$this->assertInstanceOf('\HPCloud\Exception', $test);
}
}