PHP Class lithium\tests\cases\util\InflectorTest

Inheritance: extends lithium\test\Unit
Show file Open project: unionofrad/lithium

Public Properties

Property Type Description
$_test

Public Methods

Method Description
tearDown ( )
testAddTransliterations ( ) Tests adding transliterated characters to the map used in Inflector::slug().
testAddingInvalidRules ( )
testAddingSingularizationRules ( )
testAddingUninflectedWords ( )
testCamelize ( )
testClassify ( )
testHumanize ( )
testIrregularWords ( ) Tests that rules for uninflected singular words are kept in sync with the plural, and vice versa.
testPluralize ( ) Tests pluralization inflection rules
testSingularize ( ) Tests singularization inflection rules
testSlug ( )
testStorageMechanism ( ) Tests the storage mechanism for $_underscored, $_camelized, $_humanized and $_pluralized.
testTabelize ( )

Protected Methods

Method Description
_getProtectedValue ( string $property ) : string This is a helper method for testStorageMechanism to fetch a private property of the Inflector class.

Method Details

_getProtectedValue() protected method

This is a helper method for testStorageMechanism to fetch a private property of the Inflector class.
protected _getProtectedValue ( string $property ) : string
$property string
return string The value of the property.

tearDown() public method

public tearDown ( )

testAddTransliterations() public method

Tests adding transliterated characters to the map used in Inflector::slug().

testAddingInvalidRules() public method

testAddingSingularizationRules() public method

testAddingUninflectedWords() public method

testCamelize() public method

public testCamelize ( )

testClassify() public method

public testClassify ( )

testHumanize() public method

public testHumanize ( )

testIrregularWords() public method

Tests that rules for uninflected singular words are kept in sync with the plural, and vice versa.
public testIrregularWords ( )

testPluralize() public method

Tests pluralization inflection rules
public testPluralize ( )

testSingularize() public method

Tests singularization inflection rules
public testSingularize ( )

testSlug() public method

public testSlug ( )

testStorageMechanism() public method

Tests the storage mechanism for $_underscored, $_camelized, $_humanized and $_pluralized.

testTabelize() public method

public testTabelize ( )

Property Details

$_test public static property

public static $_test