Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 119... Línea 119...
119
    }
119
    }
Línea 120... Línea 120...
120
 
120
 
121
    /**
121
    /**
122
     * @dataProvider is_valid_file_provider
122
     * @dataProvider is_valid_file_provider
123
     */
123
     */
124
    public function test_is_valid_file($path, $valid) {
124
    public function test_is_valid_file($path, $valid): void {
125
        $scss = new \core_scss();
125
        $scss = new \core_scss();
126
        $pathvalid = \phpunit_util::call_internal_method($scss, 'is_valid_file', [$path], \core_scss::class);
126
        $pathvalid = \phpunit_util::call_internal_method($scss, 'is_valid_file', [$path], \core_scss::class);
127
        $this->assertSame($valid, $pathvalid);
127
        $this->assertSame($valid, $pathvalid);
Línea 132... Línea 132...
132
     *
132
     *
133
     * @dataProvider scss_compilation_provider
133
     * @dataProvider scss_compilation_provider
134
     * @param string $scss The raw scss to compile.
134
     * @param string $scss The raw scss to compile.
135
     * @param string $expectedcss The expected CSS output.
135
     * @param string $expectedcss The expected CSS output.
136
     */
136
     */
137
    public function test_scss_compilation_with_sassc($scss, $expectedcss) {
137
    public function test_scss_compilation_with_sassc($scss, $expectedcss): void {
138
        if (!defined('PHPUNIT_PATH_TO_SASSC')) {
138
        if (!defined('PHPUNIT_PATH_TO_SASSC')) {
139
            $this->markTestSkipped('Path to SassC not provided');
139
            $this->markTestSkipped('Path to SassC not provided');
140
        }
140
        }
Línea 141... Línea 141...
141
 
141