TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 checkBrowserInfoIE6 ()
 
 checkBrowserInfoIE7 ()
 
 checkBrowserInfoIE8 ()
 
 checkBrowserInfoIE9 ()
 
 checkBrowserInfoIE10 ()
 
 checkBrowserInfoIE11 ()
 
 checkGeckoVersion ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows8 ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows8rev1 ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows7 ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsVista ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsXp ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows2k ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows2kServicePack1 ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsNt ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIpad ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIphone ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIpod ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfMacOsX ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfLinux ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfSolaris ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfAndroid ($userAgentString)
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfOpenbsd ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfNetbsd ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfFreebsd ()
 
 getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfChromeOs ()
 
 getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfSafari ()
 
 getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfFirefox ()
 
 getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfOpera ()
 
 getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfMobileSafariOnAndroid ()
 
 getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfMobileSafariOnIphone ()
 
 getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfKonqueror ()
 

Static Public Member Functions

static androidUserAgentsProvider ()
 

Private Member Functions

 analyzeUserAgentStrings ($browserStrings, $expectedMembers)
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase for the class.

Author
Steffen Kamper info@.nosp@m.sk-t.nosp@m.ypo3..nosp@m.de

Definition at line 22 of file ClientUtilityTest.php.

Member Function Documentation

◆ analyzeUserAgentStrings()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::analyzeUserAgentStrings (   $browserStrings,
  $expectedMembers 
)
private

◆ androidUserAgentsProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::androidUserAgentsProvider ( )
static

Provide various user agent strings for android devices

Returns
array List of user agents

Definition at line 337 of file ClientUtilityTest.php.

◆ checkBrowserInfoIE10()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::checkBrowserInfoIE10 ( )

◆ checkBrowserInfoIE11()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::checkBrowserInfoIE11 ( )

◆ checkBrowserInfoIE6()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::checkBrowserInfoIE6 ( )

◆ checkBrowserInfoIE7()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::checkBrowserInfoIE7 ( )

◆ checkBrowserInfoIE8()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::checkBrowserInfoIE8 ( )

◆ checkBrowserInfoIE9()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::checkBrowserInfoIE9 ( )

◆ checkGeckoVersion()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::checkGeckoVersion ( )

◆ getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfFirefox()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfFirefox ( )

◆ getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfKonqueror()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfKonqueror ( )

◆ getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfMobileSafariOnAndroid()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfMobileSafariOnAndroid ( )

◆ getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfMobileSafariOnIphone()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfMobileSafariOnIphone ( )

◆ getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfOpera()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfOpera ( )

◆ getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfSafari()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfSafari ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfAndroid()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfAndroid (   $userAgentString)
Test:
androidUserAgentsProvider

Definition at line 353 of file ClientUtilityTest.php.

References TYPO3\CMS\Core\Utility\ClientUtility\getBrowserInfo().

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfChromeOs()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfChromeOs ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfFreebsd()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfFreebsd ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIpad()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIpad ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIphone()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIphone ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIpod()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIpod ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfLinux()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfLinux ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfMacOsX()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfMacOsX ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfNetbsd()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfNetbsd ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfOpenbsd()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfOpenbsd ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfSolaris()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfSolaris ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows2k()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows2k ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows2kServicePack1()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows2kServicePack1 ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows7()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows7 ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows8()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows8 ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows8rev1()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows8rev1 ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsNt()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsNt ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsVista()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsVista ( )

◆ getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsXp()

TYPO3\CMS\Core\Tests\Unit\Utility\ClientUtilityTest::getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsXp ( )