PHP Class BrowscapTest\Formatter\PhpFormatterTest

Author: Thomas Müller ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: browscap/browscap

Public Methods

Method Description
propertyNameTypeDataProvider ( ) : array[] Data Provider for the test testGetPropertyType
setUp ( ) Sets up the fixture, for example, open a network connection.
testFormatPropertyName ( ) tests formatting a property name
testFormatPropertyValue ( string $propertyName, string $inputValue, string $expectedValue ) tests formatting a property value
testGetType ( ) tests getter for the formatter type
testSetGetFilter ( ) tests setter and getter for the filter

Method Details

propertyNameTypeDataProvider() public method

Data Provider for the test testGetPropertyType
public propertyNameTypeDataProvider ( ) : array[]
return array[]

setUp() public method

This method is called before a test is executed.
public setUp ( )

testFormatPropertyName() public method

tests formatting a property name

testFormatPropertyValue() public method

tests formatting a property value
public testFormatPropertyValue ( string $propertyName, string $inputValue, string $expectedValue )
$propertyName string
$inputValue string
$expectedValue string

testGetType() public method

tests getter for the formatter type
public testGetType ( )

testSetGetFilter() public method

tests setter and getter for the filter
public testSetGetFilter ( )