Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 32... Línea 32...
32
class csslib_test extends \advanced_testcase {
32
class csslib_test extends \advanced_testcase {
Línea 33... Línea 33...
33
 
33
 
34
    /**
34
    /**
35
     * Test that css_is_colour function throws an exception.
35
     * Test that css_is_colour function throws an exception.
36
     */
36
     */
37
    public function test_css_is_colour() {
37
    public function test_css_is_colour(): void {
38
        $this->expectException('coding_exception');
38
        $this->expectException('coding_exception');
39
        $this->expectExceptionMessage('css_is_colour() can not be used anymore.');
39
        $this->expectExceptionMessage('css_is_colour() can not be used anymore.');
40
        css_is_colour();
40
        css_is_colour();
Línea 41... Línea 41...
41
    }
41
    }
42
 
42
 
43
    /**
43
    /**
44
     * Test that css_is_width function throws an exception.
44
     * Test that css_is_width function throws an exception.
45
     */
45
     */
46
    public function test_css_is_width() {
46
    public function test_css_is_width(): void {
47
        $this->expectException('coding_exception');
47
        $this->expectException('coding_exception');
48
        $this->expectExceptionMessage('css_is_width() can not be used anymore.');
48
        $this->expectExceptionMessage('css_is_width() can not be used anymore.');
49
        css_is_width();
49
        css_is_width();