diff --git a/tests/TODO b/tests/TODO index b0e429a..f6f0cf2 100644 --- a/tests/TODO +++ b/tests/TODO @@ -1,13 +1,13 @@ +Dynamic +Log + Cache Config Database -Dynamic Form HTML -Log Model Module -Object Profiler Security Session diff --git a/tests/classes/DynamicTest.php b/tests/classes/DynamicTest.php new file mode 100644 index 0000000..a2e7a0b --- /dev/null +++ b/tests/classes/DynamicTest.php @@ -0,0 +1,81 @@ + diff --git a/tests/classes/LogTest.php b/tests/classes/LogTest.php new file mode 100644 index 0000000..80d1a8b --- /dev/null +++ b/tests/classes/LogTest.php @@ -0,0 +1,41 @@ + diff --git a/tests/classes/ObjectTest.php b/tests/classes/ObjectTest.php new file mode 100644 index 0000000..649907c --- /dev/null +++ b/tests/classes/ObjectTest.php @@ -0,0 +1,20 @@ +assertInstanceOf('Config', PHPUnit_Framework_Assert::readAttribute($object, 'config')); + } + + public function testConstructorWithObjects() + { + $object = new Object('cache'); + + $this->assertInstanceOf('Cache', PHPUnit_Framework_Assert::readAttribute($object, 'cache')); + } +} + +?>