\JVersionTest
Test class for JVersion.
Synopsis
class JVersionTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected JVersion $object;
- // methods
- protected void setUp()
- public void testIsCompatible()
- public void testGetHelpVersion()
- public void testGetShortVersion()
- public void testGetLongVersion()
- public void testGetUserAgent_maskFalse()
- public void testGetUserAgent_maskTrue()
- public void testGetUserAgent_ComponentNull()
- public void testGetUserAgent_ComponentNotNull()
Hierarchy
Extends
Members
protected
- $object
—
JVersion
Object under test
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- testGetHelpVersion() — Tests the getHelpVersion method
- testGetLongVersion() — Tests the getLongVersion method
- testGetShortVersion() — Tests the getShortVersion method
- testGetUserAgent_ComponentNotNull() — Tests the getUserAgent method for a component string matching the specified option
- testGetUserAgent_ComponentNull() — Tests the getUserAgent method for a null component string
- testGetUserAgent_maskFalse() — Tests the getUserAgent method for a mask not containing the Mozilla version string
- testGetUserAgent_maskTrue() — Tests the getUserAgent method for a mask containing the Mozilla version string
- testIsCompatible() — Tests the isCompatible method