Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 30... Línea 30...
30
 * @category   test
30
 * @category   test
31
 * @copyright  2011 David Mudrak <david@moodle.com>
31
 * @copyright  2011 David Mudrak <david@moodle.com>
32
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 */
33
 */
34
class grading_manager_test extends \advanced_testcase {
34
class grading_manager_test extends \advanced_testcase {
35
    public function test_basic_instantiation() {
35
    public function test_basic_instantiation(): void {
36
        $manager1 = get_grading_manager();
36
        $manager1 = get_grading_manager();
Línea 37... Línea 37...
37
 
37
 
38
        $fakecontext = (object)array(
38
        $fakecontext = (object)array(
39
            'id'            => 42,
39
            'id'            => 42,
Línea 48... Línea 48...
48
    }
48
    }
Línea 49... Línea 49...
49
 
49
 
50
    /**
50
    /**
51
     * Unit test to set and get grading areas
51
     * Unit test to set and get grading areas
52
     */
52
     */
53
    public function test_set_and_get_grading_area() {
53
    public function test_set_and_get_grading_area(): void {
Línea 54... Línea 54...
54
        global $DB;
54
        global $DB;
Línea 55... Línea 55...
55
 
55
 
Línea 90... Línea 90...
90
    }
90
    }
Línea 91... Línea 91...
91
 
91
 
92
    /**
92
    /**
93
     * Unit test to check the tokenize method
93
     * Unit test to check the tokenize method
94
     */
94
     */
Línea 95... Línea 95...
95
    public function test_tokenize() {
95
    public function test_tokenize(): void {
Línea 96... Línea 96...
96
 
96
 
97
        $UTFfailuremessage = 'A test using UTF-8 characters has failed. Consider updating PHP and PHP\'s PCRE or INTL extensions (MDL-30494)';
97
        $UTFfailuremessage = 'A test using UTF-8 characters has failed. Consider updating PHP and PHP\'s PCRE or INTL extensions (MDL-30494)';