Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 39... Línea 39...
39
class baseatom_test extends \basic_testcase {
39
class baseatom_test extends \basic_testcase {
Línea 40... Línea 40...
40
 
40
 
41
    /**
41
    /**
42
     * Correct base_atom_tests
42
     * Correct base_atom_tests
43
     */
43
     */
44
    function test_base_atom() {
44
    function test_base_atom(): void {
45
        $name_with_all_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_';
45
        $name_with_all_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_';
Línea 46... Línea 46...
46
        $value_to_test = 'Some <value> to test';
46
        $value_to_test = 'Some <value> to test';
47
 
47
 
Línea 78... Línea 78...
78
    }
78
    }
Línea 79... Línea 79...
79
 
79
 
80
    /**
80
    /**
81
     * Throwing exception base_atom tests
81
     * Throwing exception base_atom tests
82
     */
82
     */
83
    function test_base_atom_exceptions() {
83
    function test_base_atom_exceptions(): void {
84
        // empty names
84
        // empty names
85
        try {
85
        try {
86
            $instance = new mock_base_atom('');
86
            $instance = new mock_base_atom('');
87
            $this->fail("Expecting base_atom_struct_exception exception, none occurred");
87
            $this->fail("Expecting base_atom_struct_exception exception, none occurred");