TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ClientUtilityTest Class Reference
Inheritance diagram for ClientUtilityTest:
UnitTestCase 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 UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for the class.

Definition at line 20 of file ClientUtilityTest.php.

Member Function Documentation

analyzeUserAgentStrings (   $browserStrings,
  $expectedMembers 
)
private

Compares array of UA strings with expected result array of browser/version pair

Parameters
array$browserStringsarray with userAgent strings
array$expectedMembersarray with expected browser/version for given userAgent strings

Definition at line 31 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

Referenced by ClientUtilityTest\checkBrowserInfoIE10(), ClientUtilityTest\checkBrowserInfoIE11(), ClientUtilityTest\checkBrowserInfoIE6(), ClientUtilityTest\checkBrowserInfoIE7(), ClientUtilityTest\checkBrowserInfoIE8(), and ClientUtilityTest\checkBrowserInfoIE9().

static androidUserAgentsProvider ( )
static

Provide various user agent strings for android devices

Returns
array List of user agents

Definition at line 356 of file ClientUtilityTest.php.

checkBrowserInfoIE10 ( )
checkBrowserInfoIE11 ( )
checkBrowserInfoIE6 ( )
checkBrowserInfoIE7 ( )
checkBrowserInfoIE8 ( )
checkBrowserInfoIE9 ( )
checkGeckoVersion ( )
Test:

Definition at line 203 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfFirefox ( )
Test:

Definition at line 432 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfKonqueror ( )
Test:

Definition at line 472 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfMobileSafariOnAndroid ( )
Test:

Definition at line 452 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfMobileSafariOnIphone ( )
Test:

Definition at line 462 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfOpera ( )
Test:

Definition at line 442 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectBrowserValueForUserAgentStringOfSafari ( )
Test:

Definition at line 422 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfAndroid (   $userAgentString)
Test:
androidUserAgentsProvider

Definition at line 373 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfChromeOs ( )
Test:

Definition at line 412 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfFreebsd ( )
Test:

Definition at line 402 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIpad ( )
Test:

Definition at line 293 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIphone ( )
Test:

Definition at line 303 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfIpod ( )
Test:

Definition at line 313 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfLinux ( )
Test:

Definition at line 333 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfMacOsX ( )
Test:

Definition at line 323 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfNetbsd ( )
Test:

Definition at line 392 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfOpenbsd ( )
Test:

Definition at line 382 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfSolaris ( )
Test:

Definition at line 343 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows2k ( )
Test:

Definition at line 263 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows2kServicePack1 ( )
Test:

Definition at line 273 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows7 ( )
Test:

Definition at line 233 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows8 ( )
Test:

Definition at line 213 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindows8rev1 ( )
Test:

Definition at line 223 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsNt ( )
Test:

Definition at line 283 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsVista ( )
Test:

Definition at line 243 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().

getBrowserInfoReturnsCorrectSystemValueForUserAgentStringOfWindowsXp ( )
Test:

Definition at line 253 of file ClientUtilityTest.php.

References ClientUtility\getBrowserInfo().