Semantic MediaWiki and related extensions
Public Member Functions | Static Public Attributes | List of all members
Maps\Test\MapsDistanceParserTest Class Reference
Collaboration diagram for Maps\Test\MapsDistanceParserTest:
Collaboration graph
[legend]

Public Member Functions

 setUp ()
 
 testParseDistance ()
 
 testFormatDistance ()
 
 testParseAndFormat ()
 
 testIsDistance ()
 
 testGetUnitRatio ()
 
 testGetValidUnit ()
 
 testGetUnits ()
 

Static Public Attributes

static $distances
 
static static $formatTests
 
static $fakeDistances
 

Detailed Description

MapsDistanceParser

GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Member Function Documentation

Maps\Test\MapsDistanceParserTest::setUp ( )
Maps\Test\MapsDistanceParserTest::testFormatDistance ( )
Maps\Test\MapsDistanceParserTest::testGetUnitRatio ( )
Maps\Test\MapsDistanceParserTest::testGetUnits ( )
Maps\Test\MapsDistanceParserTest::testGetValidUnit ( )
Maps\Test\MapsDistanceParserTest::testIsDistance ( )
Maps\Test\MapsDistanceParserTest::testParseAndFormat ( )
Maps\Test\MapsDistanceParserTest::testParseDistance ( )

Member Data Documentation

Maps\Test\MapsDistanceParserTest::$distances
static
Initial value:
= [
'1' => 1
Maps\Test\MapsDistanceParserTest::$fakeDistances
static
Initial value:
= [
'IN YOUR CODE, BEING TOTALLY RIDICULOUS',
'0x20 km',
'km 42',
'42 42 km',
'42 km km',
'42 foo',
'3.4.2 km'
]
static Maps\Test\MapsDistanceParserTest::$formatTests
static
Initial value:
= [
'm' => [
'1 m' => 1

The documentation for this class was generated from the following file: