function CDNUnitTestCase::setUserAgent in CDN 7.2
Set the User-Agent of the current "request".
Parameters
$ua: A User-Agent, which can be almost any string.
1 call to CDNUnitTestCase::setUserAgent()
- CDNSEOTestCase::testSEO in tests/
cdn.test
File
- tests/
cdn.test, line 107 - Test CDN.
Class
- CDNUnitTestCase
- @file Test CDN.
Code
function setUserAgent($ua) {
$_SERVER['HTTP_USER_AGENT'] = $ua;
}