pickles/tests/classes/ObjectTest.php
Joshua Sherman 3fee938c2a Stubbed out and wrote some tests
Will code tests for the stub files in the AM.
2014-01-02 01:17:25 -05:00

20 lines
428 B
PHP

<?php
class ObjectTest extends PHPUnit_Framework_TestCase
{
public function testConstructorWithoutObjects()
{
$object = new Object();
$this->assertInstanceOf('Config', PHPUnit_Framework_Assert::readAttribute($object, 'config'));
}
public function testConstructorWithObjects()
{
$object = new Object('cache');
$this->assertInstanceOf('Cache', PHPUnit_Framework_Assert::readAttribute($object, 'cache'));
}
}
?>