Skip to content

Commit

Permalink
MDL-37517 testing: remove deprecated classes
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Dec 5, 2013
1 parent 9b37cd7 commit dfe84ff
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 103 deletions.
36 changes: 0 additions & 36 deletions lib/phpunit/generatorlib.php

This file was deleted.

23 changes: 0 additions & 23 deletions lib/testing/generator/block_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,3 @@ protected function prepare_record(stdClass $record) {
*/
abstract public function create_instance($record = null, array $options = null);
}

/**
* Deprecated in favour of testing_block_generator
*
* @deprecated since Moodle 2.5 MDL-37457 - please do not use this function any more.
* @todo MDL-37517 This will be deleted in Moodle 2.7
* @see testing_block_generator
* @package core
* @category test
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
abstract class phpunit_block_generator extends testing_block_generator {

/**
* Dumb constructor to throw the deprecated notification
* @param testing_data_generator $datagenerator
*/
public function __construct(testing_data_generator $datagenerator) {
debugging('Class phpunit_block_generator is deprecated, please use class testing_block_generator instead', DEBUG_DEVELOPER);
parent::__construct($datagenerator);
}
}
21 changes: 0 additions & 21 deletions lib/testing/generator/data_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -741,24 +741,3 @@ public function role_assign($roleid, $userid, $contextid = false) {
}

}

/**
* Deprecated in favour of testing_data_generator
*
* @deprecated since Moodle 2.5 MDL-37457 - please do not use this function any more.
* @todo MDL-37517 This will be deleted in Moodle 2.7
* @see testing_data_generator
* @package core
* @category test
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class phpunit_data_generator extends testing_data_generator {

/**
* Dumb constructor to throw the deprecated notification
*/
public function __construct() {
debugging('Class phpunit_data_generator is deprecated, please use class testing_module_generator instead', DEBUG_DEVELOPER);
}
}
23 changes: 0 additions & 23 deletions lib/testing/generator/module_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,26 +282,3 @@ public function create_content($instance, $record = array()) {
throw new coding_exception('Module generator for '.$this->get_modulename().' does not implement method create_content()');
}
}

/**
* Deprecated in favour of testing_module_generator
*
* @deprecated since Moodle 2.5 MDL-37457 - please do not use this function any more.
* @todo MDL-37517 This will be deleted in Moodle 2.7
* @see testing_module_generator
* @package core
* @category test
* @copyright 2012 David Monllaó
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
abstract class phpunit_module_generator extends testing_module_generator {

/**
* Dumb constructor to throw the deprecated notification
* @param testing_data_generator $datagenerator
*/
public function __construct(testing_data_generator $datagenerator) {
debugging('Class phpunit_module_generator is deprecated, please use class testing_module_generator instead', DEBUG_DEVELOPER);
parent::__construct($datagenerator);
}
}

0 comments on commit dfe84ff

Please sign in to comment.