From 71d472a94ada7a5ae5cde96f70ee8aa4719db59b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 16 Aug 2006 02:44:26 +0000 Subject: [PATCH] Documenting test suites is pointless --- UnitTest/LoaderTest.php | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/UnitTest/LoaderTest.php b/UnitTest/LoaderTest.php index 16facb6..a3f2f62 100644 --- a/UnitTest/LoaderTest.php +++ b/UnitTest/LoaderTest.php @@ -14,16 +14,8 @@ require_once('./../Loader.php'); */ class LoaderTest extends UnitTestCase { - /** - * The new, main instance. - * @var object - */ protected $instance; - // ################################################################### - /** - * Creates a new instance and makes sure it's the right class. - */ public function testNewRegister() { $this->instance = BSLoader::NewRegister(); @@ -31,21 +23,12 @@ class LoaderTest extends UnitTestCase $this->assertEqual(get_class($this->instance), 'BSRegister'); } - // ################################################################### - /** - * Checks that the return value of GetAllRegisters() is an array - * with the right size. - */ public function testGetAllRegisters() { $this->assertIsA(BSLoader::GetAllRegisters(), 'array', 'Register array is not an array'); $this->assertEqual(sizeof(BSLoader::GetAllRegisters()), 1, 'Register array is wrong size'); } - - // ################################################################### - /** - * Checks that we can set and get the main instance. - */ + public function testSetGetRegister() { BSLoader::SetRegister($this->instance); @@ -53,11 +36,6 @@ class LoaderTest extends UnitTestCase $this->assertReference(BSLoader::GetRegister(), $this->instance); } - // ################################################################### - /** - * Makes sure that the main instance stays the same after we add a new - * one. - */ public function testRegisterAfterMakeNew() { BSLoader::NewRegister(); @@ -67,10 +45,6 @@ class LoaderTest extends UnitTestCase $this->assertReference($this->instance, BSLoader::GetRegister(), 'Main register does not match instance'); } - // ################################################################### - /** - * Tests that we can load a module. - */ public function testLoadModule() { $this->assertEqual(get_class(BSLoader::LoadModule('Input')), 'BSInput'); -- 2.22.5