Procházet zdrojové kódy

Adding default test classes for phpunit + generator script - refs #5568

Yannick Warnier před 12 roky
rodič
revize
b0c14ae5dc
26 změnil soubory, kde provedl 2853 přidání a 0 odebrání
  1. binární
      tests/phpunit/.generate_test_classes.php.swp
  2. 4 0
      tests/phpunit/README.txt
  3. 76 0
      tests/phpunit/classes/AccessAllTest.class.php
  4. 76 0
      tests/phpunit/classes/AccessForbiddenTest.class.php
  5. 100 0
      tests/phpunit/classes/AccessTest.class.php
  6. 136 0
      tests/phpunit/classes/AccessTokenTest.class.php
  7. 112 0
      tests/phpunit/classes/CacheTest.class.php
  8. 52 0
      tests/phpunit/classes/ConditionalLoginTest.class.php
  9. 316 0
      tests/phpunit/classes/CurrentCourseTest.class.php
  10. 292 0
      tests/phpunit/classes/CurrentUserTest.class.php
  11. 76 0
      tests/phpunit/classes/CustomPagesTest.class.php
  12. 52 0
      tests/phpunit/classes/EventsMailTest.class.php
  13. 112 0
      tests/phpunit/classes/FileStoreTest.class.php
  14. 76 0
      tests/phpunit/classes/JavascriptTest.class.php
  15. 40 0
      tests/phpunit/classes/LoginRedirectionTest.class.php
  16. 184 0
      tests/phpunit/classes/PageTest.class.php
  17. 232 0
      tests/phpunit/classes/PluginTest.class.php
  18. 40 0
      tests/phpunit/classes/ResponseTest.class.php
  19. 196 0
      tests/phpunit/classes/ResultSetTest.class.php
  20. 136 0
      tests/phpunit/classes/SessionHandlerTest.class.php
  21. 52 0
      tests/phpunit/classes/TableSortTest.class.php
  22. 100 0
      tests/phpunit/classes/UriTest.class.php
  23. 88 0
      tests/phpunit/classes/UserApiKeyManagerTest.class.php
  24. 100 0
      tests/phpunit/classes/ZipTest.class.php
  25. 172 0
      tests/phpunit/classes/dbTest.class.php
  26. 33 0
      tests/phpunit/generate_test_classes.php

binární
tests/phpunit/.generate_test_classes.php.swp


+ 4 - 0
tests/phpunit/README.txt

@@ -0,0 +1,4 @@
+Do not modify these test classes by hand. They will probably get overwritten 
+with the next automatic generation. Instead, use copies of the existing files
+and suffix them with "Custom" to maintain them in the code versioning system.
+For example: AccessTestCustom.class.php

+ 76 - 0
tests/phpunit/classes/AccessAllTest.class.php

@@ -0,0 +1,76 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class AccessAllTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var AccessAll
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new AccessAll;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers AccessAll::instance
+     * @todo   Implement testInstance().
+     */
+    public function testInstance()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessAll::can_edit
+     * @todo   Implement testCan_edit().
+     */
+    public function testCan_edit()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessAll::can_view
+     * @todo   Implement testCan_view().
+     */
+    public function testCan_view()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessAll::authorize
+     * @todo   Implement testAuthorize().
+     */
+    public function testAuthorize()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 76 - 0
tests/phpunit/classes/AccessForbiddenTest.class.php

@@ -0,0 +1,76 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class AccessForbiddenTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var AccessForbidden
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new AccessForbidden;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers AccessForbidden::instance
+     * @todo   Implement testInstance().
+     */
+    public function testInstance()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessForbidden::can_edit
+     * @todo   Implement testCan_edit().
+     */
+    public function testCan_edit()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessForbidden::can_view
+     * @todo   Implement testCan_view().
+     */
+    public function testCan_view()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessForbidden::authorize
+     * @todo   Implement testAuthorize().
+     */
+    public function testAuthorize()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 100 - 0
tests/phpunit/classes/AccessTest.class.php

@@ -0,0 +1,100 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:07.
+ */
+class AccessTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var Access
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new Access;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers Access::all
+     * @todo   Implement testAll().
+     */
+    public function testAll()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Access::forbidden
+     * @todo   Implement testForbidden().
+     */
+    public function testForbidden()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Access::is_token_valid
+     * @todo   Implement testIs_token_valid().
+     */
+    public function testIs_token_valid()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Access::get_session_token
+     * @todo   Implement testGet_session_token().
+     */
+    public function testGet_session_token()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Access::get_token
+     * @todo   Implement testGet_token().
+     */
+    public function testGet_token()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Access::authorize
+     * @todo   Implement testAuthorize().
+     */
+    public function testAuthorize()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 136 - 0
tests/phpunit/classes/AccessTokenTest.class.php

@@ -0,0 +1,136 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class AccessTokenTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var AccessToken
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new AccessToken;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers AccessToken::empty_token
+     * @todo   Implement testEmpty_token().
+     */
+    public function testEmpty_token()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessToken::parse
+     * @todo   Implement testParse().
+     */
+    public function testParse()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessToken::create
+     * @todo   Implement testCreate().
+     */
+    public function testCreate()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessToken::get_id
+     * @todo   Implement testGet_id().
+     */
+    public function testGet_id()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessToken::get_user_id
+     * @todo   Implement testGet_user_id().
+     */
+    public function testGet_user_id()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessToken::get_key
+     * @todo   Implement testGet_key().
+     */
+    public function testGet_key()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessToken::is_empty
+     * @todo   Implement testIs_empty().
+     */
+    public function testIs_empty()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessToken::is_valid
+     * @todo   Implement testIs_valid().
+     */
+    public function testIs_valid()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers AccessToken::__toString
+     * @todo   Implement test__toString().
+     */
+    public function test__toString()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 112 - 0
tests/phpunit/classes/CacheTest.class.php

@@ -0,0 +1,112 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class CacheTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var Cache
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new Cache;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers Cache::get
+     * @todo   Implement testGet().
+     */
+    public function testGet()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Cache::has
+     * @todo   Implement testHas().
+     */
+    public function testHas()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Cache::put
+     * @todo   Implement testPut().
+     */
+    public function testPut()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Cache::remove
+     * @todo   Implement testRemove().
+     */
+    public function testRemove()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Cache::clear
+     * @todo   Implement testClear().
+     */
+    public function testClear()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Cache::path
+     * @todo   Implement testPath().
+     */
+    public function testPath()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Cache::key
+     * @todo   Implement testKey().
+     */
+    public function testKey()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 52 - 0
tests/phpunit/classes/ConditionalLoginTest.class.php

@@ -0,0 +1,52 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class ConditionalLoginTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var ConditionalLogin
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new ConditionalLogin;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers ConditionalLogin::check_conditions
+     * @todo   Implement testCheck_conditions().
+     */
+    public function testCheck_conditions()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ConditionalLogin::login
+     * @todo   Implement testLogin().
+     */
+    public function testLogin()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 316 - 0
tests/phpunit/classes/CurrentCourseTest.class.php

@@ -0,0 +1,316 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class CurrentCourseTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var CurrentCourse
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new CurrentCourse;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers CurrentCourse::instance
+     * @todo   Implement testInstance().
+     */
+    public function testInstance()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::is_empty
+     * @todo   Implement testIs_empty().
+     */
+    public function testIs_empty()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::data
+     * @todo   Implement testData().
+     */
+    public function testData()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::real_id
+     * @todo   Implement testReal_id().
+     */
+    public function testReal_id()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::code
+     * @todo   Implement testCode().
+     */
+    public function testCode()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::name
+     * @todo   Implement testName().
+     */
+    public function testName()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::title
+     * @todo   Implement testTitle().
+     */
+    public function testTitle()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::official_code
+     * @todo   Implement testOfficial_code().
+     */
+    public function testOfficial_code()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::sys_code
+     * @todo   Implement testSys_code().
+     */
+    public function testSys_code()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::path
+     * @todo   Implement testPath().
+     */
+    public function testPath()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::db_name
+     * @todo   Implement testDb_name().
+     */
+    public function testDb_name()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::db_name_glu
+     * @todo   Implement testDb_name_glu().
+     */
+    public function testDb_name_glu()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::titular
+     * @todo   Implement testTitular().
+     */
+    public function testTitular()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::language
+     * @todo   Implement testLanguage().
+     */
+    public function testLanguage()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::category_code
+     * @todo   Implement testCategory_code().
+     */
+    public function testCategory_code()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::category_ame
+     * @todo   Implement testCategory_ame().
+     */
+    public function testCategory_ame()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::visibility
+     * @todo   Implement testVisibility().
+     */
+    public function testVisibility()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::subscribe_allowed
+     * @todo   Implement testSubscribe_allowed().
+     */
+    public function testSubscribe_allowed()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::unsubscribe_allowed
+     * @todo   Implement testUnsubscribe_allowed().
+     */
+    public function testUnsubscribe_allowed()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::activate_legal
+     * @todo   Implement testActivate_legal().
+     */
+    public function testActivate_legal()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::show_score
+     * @todo   Implement testShow_score().
+     */
+    public function testShow_score()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::extrnal_link
+     * @todo   Implement testExtrnal_link().
+     */
+    public function testExtrnal_link()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::user
+     * @todo   Implement testUser().
+     */
+    public function testUser()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentCourse::get
+     * @todo   Implement testGet().
+     */
+    public function testGet()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 292 - 0
tests/phpunit/classes/CurrentUserTest.class.php

@@ -0,0 +1,292 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class CurrentUserTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var CurrentUser
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new CurrentUser;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers CurrentUser::instance
+     * @todo   Implement testInstance().
+     */
+    public function testInstance()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::data
+     * @todo   Implement testData().
+     */
+    public function testData()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_anonymous
+     * @todo   Implement testIs_anonymous().
+     */
+    public function testIs_anonymous()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::first_name
+     * @todo   Implement testFirst_name().
+     */
+    public function testFirst_name()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::last_name
+     * @todo   Implement testLast_name().
+     */
+    public function testLast_name()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::email
+     * @todo   Implement testEmail().
+     */
+    public function testEmail()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::last_login
+     * @todo   Implement testLast_login().
+     */
+    public function testLast_login()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::official_code
+     * @todo   Implement testOfficial_code().
+     */
+    public function testOfficial_code()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::picture_uri
+     * @todo   Implement testPicture_uri().
+     */
+    public function testPicture_uri()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::user_id
+     * @todo   Implement testUser_id().
+     */
+    public function testUser_id()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::language
+     * @todo   Implement testLanguage().
+     */
+    public function testLanguage()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::auth_source
+     * @todo   Implement testAuth_source().
+     */
+    public function testAuth_source()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::theme
+     * @todo   Implement testTheme().
+     */
+    public function testTheme()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_platform_admin
+     * @todo   Implement testIs_platform_admin().
+     */
+    public function testIs_platform_admin()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_session_admin
+     * @todo   Implement testIs_session_admin().
+     */
+    public function testIs_session_admin()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_allowed_to_create_course
+     * @todo   Implement testIs_allowed_to_create_course().
+     */
+    public function testIs_allowed_to_create_course()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_course_admin
+     * @todo   Implement testIs_course_admin().
+     */
+    public function testIs_course_admin()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_course_member
+     * @todo   Implement testIs_course_member().
+     */
+    public function testIs_course_member()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_allowed_in_course
+     * @todo   Implement testIs_allowed_in_course().
+     */
+    public function testIs_allowed_in_course()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_course_coach
+     * @todo   Implement testIs_course_coach().
+     */
+    public function testIs_course_coach()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::is_course_tutor
+     * @todo   Implement testIs_course_tutor().
+     */
+    public function testIs_course_tutor()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CurrentUser::get
+     * @todo   Implement testGet().
+     */
+    public function testGet()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 76 - 0
tests/phpunit/classes/CustomPagesTest.class.php

@@ -0,0 +1,76 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class CustomPagesTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var CustomPages
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new CustomPages;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers CustomPages::enabled
+     * @todo   Implement testEnabled().
+     */
+    public function testEnabled()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CustomPages::path
+     * @todo   Implement testPath().
+     */
+    public function testPath()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CustomPages::display
+     * @todo   Implement testDisplay().
+     */
+    public function testDisplay()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers CustomPages::getURLImages
+     * @todo   Implement testGetURLImages().
+     */
+    public function testGetURLImages()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 52 - 0
tests/phpunit/classes/EventsMailTest.class.php

@@ -0,0 +1,52 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class EventsMailTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var EventsMail
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new EventsMail;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers EventsMail::send_mail
+     * @todo   Implement testSend_mail().
+     */
+    public function testSend_mail()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers EventsMail::check_if_using_class
+     * @todo   Implement testCheck_if_using_class().
+     */
+    public function testCheck_if_using_class()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 112 - 0
tests/phpunit/classes/FileStoreTest.class.php

@@ -0,0 +1,112 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class FileStoreTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var FileStore
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new FileStore;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers FileStore::course
+     * @todo   Implement testCourse().
+     */
+    public function testCourse()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers FileStore::root
+     * @todo   Implement testRoot().
+     */
+    public function testRoot()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers FileStore::accept
+     * @todo   Implement testAccept().
+     */
+    public function testAccept()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers FileStore::add
+     * @todo   Implement testAdd().
+     */
+    public function testAdd()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers FileStore::remove
+     * @todo   Implement testRemove().
+     */
+    public function testRemove()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers FileStore::get
+     * @todo   Implement testGet().
+     */
+    public function testGet()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers FileStore::new_id
+     * @todo   Implement testNew_id().
+     */
+    public function testNew_id()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 76 - 0
tests/phpunit/classes/JavascriptTest.class.php

@@ -0,0 +1,76 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:09.
+ */
+class JavascriptTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var Javascript
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new Javascript;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers Javascript::minify
+     * @todo   Implement testMinify().
+     */
+    public function testMinify()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Javascript::get_lang
+     * @todo   Implement testGet_lang().
+     */
+    public function testGet_lang()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Javascript::tag
+     * @todo   Implement testTag().
+     */
+    public function testTag()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Javascript::tag_code
+     * @todo   Implement testTag_code().
+     */
+    public function testTag_code()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 40 - 0
tests/phpunit/classes/LoginRedirectionTest.class.php

@@ -0,0 +1,40 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:09.
+ */
+class LoginRedirectionTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var LoginRedirection
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new LoginRedirection;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers LoginRedirection::redirect
+     * @todo   Implement testRedirect().
+     */
+    public function testRedirect()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 184 - 0
tests/phpunit/classes/PageTest.class.php

@@ -0,0 +1,184 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:09.
+ */
+class PageTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var Page
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new Page;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers Page::create
+     * @todo   Implement testCreate().
+     */
+    public function testCreate()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::header
+     * @todo   Implement testHeader().
+     */
+    public function testHeader()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::title
+     * @todo   Implement testTitle().
+     */
+    public function testTitle()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::breadcrumbs
+     * @todo   Implement testBreadcrumbs().
+     */
+    public function testBreadcrumbs()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::help
+     * @todo   Implement testHelp().
+     */
+    public function testHelp()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::message
+     * @todo   Implement testMessage().
+     */
+    public function testMessage()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::warning
+     * @todo   Implement testWarning().
+     */
+    public function testWarning()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::error
+     * @todo   Implement testError().
+     */
+    public function testError()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::content
+     * @todo   Implement testContent().
+     */
+    public function testContent()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::__toString
+     * @todo   Implement test__toString().
+     */
+    public function test__toString()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::display
+     * @todo   Implement testDisplay().
+     */
+    public function testDisplay()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::display_header
+     * @todo   Implement testDisplay_header().
+     */
+    public function testDisplay_header()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Page::display_footer
+     * @todo   Implement testDisplay_footer().
+     */
+    public function testDisplay_footer()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 232 - 0
tests/phpunit/classes/PluginTest.class.php

@@ -0,0 +1,232 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:09.
+ */
+class PluginTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var Plugin
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new Plugin;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers Plugin::get_info
+     * @todo   Implement testGet_info().
+     */
+    public function testGet_info()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_name
+     * @todo   Implement testGet_name().
+     */
+    public function testGet_name()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_title
+     * @todo   Implement testGet_title().
+     */
+    public function testGet_title()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_comment
+     * @todo   Implement testGet_comment().
+     */
+    public function testGet_comment()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_version
+     * @todo   Implement testGet_version().
+     */
+    public function testGet_version()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_author
+     * @todo   Implement testGet_author().
+     */
+    public function testGet_author()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_css
+     * @todo   Implement testGet_css().
+     */
+    public function testGet_css()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_settings_form
+     * @todo   Implement testGet_settings_form().
+     */
+    public function testGet_settings_form()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get
+     * @todo   Implement testGet().
+     */
+    public function testGet()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_settings
+     * @todo   Implement testGet_settings().
+     */
+    public function testGet_settings()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_lang_plugin_exists
+     * @todo   Implement testGet_lang_plugin_exists().
+     */
+    public function testGet_lang_plugin_exists()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::get_lang
+     * @todo   Implement testGet_lang().
+     */
+    public function testGet_lang()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::course_install
+     * @todo   Implement testCourse_install().
+     */
+    public function testCourse_install()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::install_course_fields
+     * @todo   Implement testInstall_course_fields().
+     */
+    public function testInstall_course_fields()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::uninstall_course_fields
+     * @todo   Implement testUninstall_course_fields().
+     */
+    public function testUninstall_course_fields()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::install_course_fields_in_all_courses
+     * @todo   Implement testInstall_course_fields_in_all_courses().
+     */
+    public function testInstall_course_fields_in_all_courses()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Plugin::uninstall_course_fields_in_all_courses
+     * @todo   Implement testUninstall_course_fields_in_all_courses().
+     */
+    public function testUninstall_course_fields_in_all_courses()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 40 - 0
tests/phpunit/classes/ResponseTest.class.php

@@ -0,0 +1,40 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:09.
+ */
+class ResponseTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var Response
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new Response;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers Response::not_found
+     * @todo   Implement testNot_found().
+     */
+    public function testNot_found()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 196 - 0
tests/phpunit/classes/ResultSetTest.class.php

@@ -0,0 +1,196 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:09.
+ */
+class ResultSetTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var ResultSet
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new ResultSet;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers ResultSet::create
+     * @todo   Implement testCreate().
+     */
+    public function testCreate()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::sql
+     * @todo   Implement testSql().
+     */
+    public function testSql()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::count
+     * @todo   Implement testCount().
+     */
+    public function testCount()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::first
+     * @todo   Implement testFirst().
+     */
+    public function testFirst()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::limit
+     * @todo   Implement testLimit().
+     */
+    public function testLimit()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::orderby
+     * @todo   Implement testOrderby().
+     */
+    public function testOrderby()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::return_type
+     * @todo   Implement testReturn_type().
+     */
+    public function testReturn_type()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::current
+     * @todo   Implement testCurrent().
+     */
+    public function testCurrent()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::key
+     * @todo   Implement testKey().
+     */
+    public function testKey()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::next
+     * @todo   Implement testNext().
+     */
+    public function testNext()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::rewind
+     * @todo   Implement testRewind().
+     */
+    public function testRewind()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::valid
+     * @todo   Implement testValid().
+     */
+    public function testValid()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::__clone
+     * @todo   Implement test__clone().
+     */
+    public function test__clone()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers ResultSet::reset
+     * @todo   Implement testReset().
+     */
+    public function testReset()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 136 - 0
tests/phpunit/classes/SessionHandlerTest.class.php

@@ -0,0 +1,136 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:09.
+ */
+class SessionHandlerTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var SessionHandler
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new SessionHandler;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers SessionHandler::sqlConnect
+     * @todo   Implement testSqlConnect().
+     */
+    public function testSqlConnect()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers SessionHandler::sqlClose
+     * @todo   Implement testSqlClose().
+     */
+    public function testSqlClose()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers SessionHandler::sqlQuery
+     * @todo   Implement testSqlQuery().
+     */
+    public function testSqlQuery()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers SessionHandler::open
+     * @todo   Implement testOpen().
+     */
+    public function testOpen()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers SessionHandler::close
+     * @todo   Implement testClose().
+     */
+    public function testClose()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers SessionHandler::read
+     * @todo   Implement testRead().
+     */
+    public function testRead()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers SessionHandler::write
+     * @todo   Implement testWrite().
+     */
+    public function testWrite()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers SessionHandler::destroy
+     * @todo   Implement testDestroy().
+     */
+    public function testDestroy()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers SessionHandler::garbage
+     * @todo   Implement testGarbage().
+     */
+    public function testGarbage()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 52 - 0
tests/phpunit/classes/TableSortTest.class.php

@@ -0,0 +1,52 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:10.
+ */
+class TableSortTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var TableSort
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new TableSort;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers TableSort::sort_table
+     * @todo   Implement testSort_table().
+     */
+    public function testSort_table()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers TableSort::sort_table_config
+     * @todo   Implement testSort_table_config().
+     */
+    public function testSort_table_config()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 100 - 0
tests/phpunit/classes/UriTest.class.php

@@ -0,0 +1,100 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:10.
+ */
+class UriTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var Uri
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new Uri;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers Uri::chamilo
+     * @todo   Implement testChamilo().
+     */
+    public function testChamilo()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Uri::www
+     * @todo   Implement testWww().
+     */
+    public function testWww()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Uri::here
+     * @todo   Implement testHere().
+     */
+    public function testHere()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Uri::url
+     * @todo   Implement testUrl().
+     */
+    public function testUrl()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Uri::params
+     * @todo   Implement testParams().
+     */
+    public function testParams()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Uri::course_params
+     * @todo   Implement testCourse_params().
+     */
+    public function testCourse_params()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 88 - 0
tests/phpunit/classes/UserApiKeyManagerTest.class.php

@@ -0,0 +1,88 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:10.
+ */
+class UserApiKeyManagerTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var UserApiKeyManager
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new UserApiKeyManager;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers UserApiKeyManager::default_service
+     * @todo   Implement testDefault_service().
+     */
+    public function testDefault_service()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers UserApiKeyManager::end_of_time
+     * @todo   Implement testEnd_of_time().
+     */
+    public function testEnd_of_time()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers UserApiKeyManager::get_by_id
+     * @todo   Implement testGet_by_id().
+     */
+    public function testGet_by_id()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers UserApiKeyManager::create_temp_token
+     * @todo   Implement testCreate_temp_token().
+     */
+    public function testCreate_temp_token()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers UserApiKeyManager::create_token
+     * @todo   Implement testCreate_token().
+     */
+    public function testCreate_token()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 100 - 0
tests/phpunit/classes/ZipTest.class.php

@@ -0,0 +1,100 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:10.
+ */
+class ZipTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var Zip
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new Zip;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers Zip::pool
+     * @todo   Implement testPool().
+     */
+    public function testPool()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Zip::create
+     * @todo   Implement testCreate().
+     */
+    public function testCreate()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Zip::get_path
+     * @todo   Implement testGet_path().
+     */
+    public function testGet_path()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Zip::get_hash
+     * @todo   Implement testGet_hash().
+     */
+    public function testGet_hash()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Zip::add
+     * @todo   Implement testAdd().
+     */
+    public function testAdd()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers Zip::callback
+     * @todo   Implement testCallback().
+     */
+    public function testCallback()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 172 - 0
tests/phpunit/classes/dbTest.class.php

@@ -0,0 +1,172 @@
+<?php
+/**
+ * Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08.
+ */
+class dbTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var db
+     */
+    protected $object;
+
+    /**
+     * Sets up the fixture, for example, opens a network connection.
+     * This method is called before a test is executed.
+     */
+    protected function setUp()
+    {
+        $this->object = new db;
+    }
+
+    /**
+     * Tears down the fixture, for example, closes a network connection.
+     * This method is called after a test is executed.
+     */
+    protected function tearDown()
+    {
+    }
+
+    /**
+     * @covers db::instance
+     * @todo   Implement testInstance().
+     */
+    public function testInstance()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::save
+     * @todo   Implement testSave().
+     */
+    public function testSave()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::remove
+     * @todo   Implement testRemove().
+     */
+    public function testRemove()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::flush
+     * @todo   Implement testFlush().
+     */
+    public function testFlush()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::test
+     * @todo   Implement testTest().
+     */
+    public function testTest()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::em
+     * @todo   Implement testEm().
+     */
+    public function testEm()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::get_repository
+     * @todo   Implement testGet_repository().
+     */
+    public function testGet_repository()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::get_entity_path
+     * @todo   Implement testGet_entity_path().
+     */
+    public function testGet_entity_path()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::is_production
+     * @todo   Implement testIs_production().
+     */
+    public function testIs_production()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::is_dev
+     * @todo   Implement testIs_dev().
+     */
+    public function testIs_dev()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::generate_model
+     * @todo   Implement testGenerate_model().
+     */
+    public function testGenerate_model()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+
+    /**
+     * @covers db::update_schema
+     * @todo   Implement testUpdate_schema().
+     */
+    public function testUpdate_schema()
+    {
+        // Remove the following lines when you implement this test.
+        $this->markTestIncomplete(
+          'This test has not been implemented yet.'
+        );
+    }
+}

+ 33 - 0
tests/phpunit/generate_test_classes.php

@@ -0,0 +1,33 @@
+<?php
+/**
+ * This script is used to generate test classes automatically from the phpunit
+ * documentation in PHPDoc blocks
+ */
+/**
+ * Initialization
+ */
+$codedir = dirname(__FILE__).'/../../main/';
+require $codedir.'inc/global.inc.php';
+$libdir = $codedir.'inc/lib/';
+$listfiles = scandir($libdir);
+$declared = get_declared_classes();
+// List of exclusions for classes not yet used
+$excludes = array('entity_repository.class.php','course_entity_repository.class.php');
+foreach ($listfiles as $file) {
+  // we don't want folders for now
+  if (is_dir($libdir.$file) || substr($file,0,1)=='.') { continue; }
+  // we only want files ending in '.class.php'
+  if (substr($file,-9) != 'class.php') { continue; }
+  // excluding special cases
+  if (in_array($file,$excludes)) { continue; }
+  // all good, now proceeding with valid classes
+  echo "Including ".$libdir.$file." unless it has already been included...\n";
+  include_once $libdir.$file;
+  $newdeclared = get_declared_classes();
+  $newclasses = array_diff($newdeclared, $declared);
+  foreach ($newclasses as $newclass) {
+    $declared[] = $newclass;
+    // Generate the call to phpunit-skelgen
+    system('phpunit-skelgen --test -- '.$newclass.' '.$libdir.$file.' '.$newclass.'Test '.$codedir.'/../tests/phpunit/classes/'.$newclass.'Test.class.php');
+  }
+}