Add testLoadBadModule()
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 16 Aug 2006 03:29:57 +0000 (03:29 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 16 Aug 2006 03:29:57 +0000 (03:29 +0000)
UnitTest/LoaderTest.php

index a3f2f62be81e100d4bd5e3da5af2ec18ec5713ef..2c36418fc215e5ba65561a25c6a4029b8c399074 100644 (file)
@@ -49,6 +49,12 @@ class LoaderTest extends UnitTestCase
        {
                $this->assertEqual(get_class(BSLoader::LoadModule('Input')), 'BSInput');
        }
+       
+       public function testLoadBadModule()
+       {
+               BSLoader::LoadModule('nonExistentModule');
+               $this->assertError();
+       }
 }
 
 ?>
\ No newline at end of file