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

Public Member Functions

 getClass ()
 
 testConstructor ()
 
 testNewFromArray (array $messages)
 
 testAddFromKey ()
 
 testSetLanguage ()
 
 testFormat (array $messages, $count)
 
 testGetHtml (array $messages)
 
 testGetPlain (array $messages)
 
 testEscapedUnescaped ()
 
 getDataProvider ()
 
- Public Member Functions inherited from SMW\Test\SemanticMediaWikiTestCase
 getClass ()
 
 newMockBuilder ()
 
 newDependencyBuilder (DependencyContainer $dependencyContainer=null)
 
 newReflector ($class=null)
 

Additional Inherited Members

- Protected Member Functions inherited from SMW\Test\SemanticMediaWikiTestCase
 newTitle ($namespace=NS_MAIN, $text=null)
 
 getUser ()
 
 newMockUser ()
 
 getLanguage ($langCode= 'en')
 
 newContext ($request=array())
 
 getSubject ($namespace=NS_MAIN)
 
 newSubject (Title $title=null)
 
 newSettings (array $settings=array())
 
 newRandomString ($length=10, $prefix=null)
 
 runOnlyOnSQLStore ($store=null)
 
 getStore ()
 
 arrayWrap (array $elements)
 

Detailed Description

SMW SMWExtension

Member Function Documentation

SMW\Test\MessageFormatterTest::getClass ( )

Returns the name of the class to be tested

Returns
string
SMW\Test\MessageFormatterTest::getDataProvider ( )

Message from different sources could have different depth therefore objects need to be resolved recursively in order to ensure a 1-n array

SMW\Test\MessageFormatterTest::testAddFromKey ( )
SMW\Test\MessageFormatterTest::testConstructor ( )
Test:
MessageFormatter::__construct getDataProvider
Since
1.9
SMW\Test\MessageFormatterTest::testEscapedUnescaped ( )
SMW\Test\MessageFormatterTest::testFormat ( array  $messages,
  $count 
)
Test:
MessageFormatter::format getDataProvider
Since
1.9
Parameters
array$messages
integer$count
SMW\Test\MessageFormatterTest::testGetHtml ( array  $messages)
Test:
MessageFormatter::getHtml getDataProvider
Since
1.9
Parameters
array$messages
SMW\Test\MessageFormatterTest::testGetPlain ( array  $messages)
Test:
MessageFormatter::getPlain getDataProvider
Since
1.9
Parameters
array$messages
SMW\Test\MessageFormatterTest::testNewFromArray ( array  $messages)
SMW\Test\MessageFormatterTest::testSetLanguage ( )

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