[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/tests/ -> useragent_test.php (summary)

Tests the user agent class.

Copyright: 2013 Sam Hemelryk
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 544 lines (30 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_useragent_testcase:: (5 methods):
  test_instance()
  test_check_browser_version()
  test_supports_svg()
  test_get_browser_version_classes()
  test_get_device_type()


Class: core_useragent_testcase  - X-Ref

User agent test suite.

test_instance()   X-Ref
Test instance generation.


test_check_browser_version()   X-Ref
Modifies $_SERVER['HTTP_USER_AGENT'] manually to check if check_browser_version
works as expected.


test_supports_svg()   X-Ref
Modifies $_SERVER['HTTP_USER_AGENT'] manually to check if supports_svg
works as expected.


test_get_browser_version_classes()   X-Ref
Test browser version classes functionality.


test_get_device_type()   X-Ref
Test device type detection.




Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1