Stubbed out and wrote some tests

Will code tests for the stub files in the AM.
This commit is contained in:
Joshua Sherman 2014-01-02 01:17:25 -05:00
parent 5308f4ea6c
commit 3fee938c2a
4 changed files with 145 additions and 3 deletions

View file

@ -1,13 +1,13 @@
Dynamic
Log
Cache
Config
Database
Dynamic
Form
HTML
Log
Model
Module
Object
Profiler
Security
Session

View file

@ -0,0 +1,81 @@
<?php
class DynamicTest extends PHPUnit_Framework_TestCase
{
public function testReferenceWithoutFailover()
{
}
public function testReferenceWithFailover()
{
}
public function testCSSWrongExtension()
{
}
public function testCSSErrorLESS()
{
}
public function testCSSErrorSASS()
{
}
public function testCSS()
{
}
public function testCSSWithLESS()
{
}
public function testCSSWithSASS()
{
}
public function testCSSUnableToMinify()
{
}
public function testCSSDoesNotExist()
{
}
public function testJSWrongExtension()
{
}
public function testJSUnableToMinify()
{
}
public function testJSDoesNotExist()
{
}
public function testJSInvalidLevel()
{
}
public function testJS()
{
}
}
?>

41
tests/classes/LogTest.php Normal file
View file

@ -0,0 +1,41 @@
<?php
class LogTest extends PHPUnit_Framework_TestCase
{
public function testInformation()
{
}
public function testWarning()
{
}
public function testError()
{
}
public function testSlowQuery()
{
}
public function testTransaction()
{
}
public function testPHPError()
{
}
public function testQuery()
{
}
}
?>

View file

@ -0,0 +1,20 @@
<?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'));
}
}
?>