Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 20... Línea 20...
20
 * @package    core
20
 * @package    core
21
 * @copyright  2013 Sam Hemelryk
21
 * @copyright  2013 Sam Hemelryk
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 * @covers \core_useragent
23
 * @covers \core_useragent
24
 */
24
 */
25
class useragent_test extends advanced_testcase {
25
final class useragent_test extends advanced_testcase {
Línea 26... Línea 26...
26
 
26
 
27
    /**
27
    /**
28
     * Restores the user agent to the default one.
28
     * Restores the user agent to the default one.
29
     */
29
     */
30
    public function tearDown(): void {
30
    public function tearDown(): void {
-
 
31
        core_useragent::instance(true);
31
        core_useragent::instance(true);
32
        parent::tearDown();
Línea 32... Línea 33...
32
    }
33
    }
33
 
34
 
34
    /**
35
    /**
35
     * Data provider for known user agents.
36
     * Data provider for known user agents.
36
     *
37
     *
37
     * @return array
38
     * @return array
38
     */
39
     */
39
    public function user_agents_providers() {
40
    public static function user_agents_providers(): array {
40
        // Note: When adding new entries to this list, please ensure that any new browser versions are added to the corresponding list.
41
        // Note: When adding new entries to this list, please ensure that any new browser versions are added to the corresponding list.
41
        // This ensures that regression tests are applied to all known user agents.
42
        // This ensures that regression tests are applied to all known user agents.
42
        return array(
43
        return array(