\Aura\IntlIntlFormatterTest

Summary

Methods
Properties
Constants
testFormat()
setUp()
testIntlVersion()
testFormat_plural()
testFormat_select()
provide_testFormat_select()
testFormat_cannotInstantiateFormatter()
testFormat_cannotFormat()
testIssue6()
testEmptyStringThrowsException()
provide_testIssue6()
No public properties found
No constants found
newFormatter()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

testFormat()

testFormat() 

setUp()

setUp() 

testIntlVersion()

testIntlVersion() 

testFormat_plural()

testFormat_plural() 

This test fails on PHP 5.4.4 The return value expected is No pages , but returns false

var_dump( msgfmt_get_error_message($fmt) ); U_ZERO_ERROR

It seems $fmt = msgfmt_create($locale, $string); is not creating with this string , so the msgfmt_format() throws expects parameter 1 to be MessageFormatter, null given error.

testFormat_select()

testFormat_select(  $tokens_values,   $expect) 

Parameters

$tokens_values
$expect

provide_testFormat_select()

provide_testFormat_select() 

testFormat_cannotInstantiateFormatter()

testFormat_cannotInstantiateFormatter() 

testFormat_cannotFormat()

testFormat_cannotFormat() 

testIssue6()

testIssue6(  $tokens_values,   $expect) 

Parameters

$tokens_values
$expect

testEmptyStringThrowsException()

testEmptyStringThrowsException() 

provide_testIssue6()

provide_testIssue6() 

newFormatter()

newFormatter()