PHP Class lithium\tests\cases\util\InflectorTest

Inheritance: extends lithium\test\Unit
Afficher le fichier Open project: unionofrad/lithium

Méthodes publiques

Свойство Type Description
$_test

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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 méthode

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

tearDown() public méthode

public tearDown ( )

testAddTransliterations() public méthode

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

testAddingInvalidRules() public méthode

testAddingSingularizationRules() public méthode

testAddingUninflectedWords() public méthode

testCamelize() public méthode

public testCamelize ( )

testClassify() public méthode

public testClassify ( )

testHumanize() public méthode

public testHumanize ( )

testIrregularWords() public méthode

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

testPluralize() public méthode

Tests pluralization inflection rules
public testPluralize ( )

testSingularize() public méthode

Tests singularization inflection rules
public testSingularize ( )

testSlug() public méthode

public testSlug ( )

testStorageMechanism() public méthode

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

testTabelize() public méthode

public testTabelize ( )

Property Details

$_test public_oe static_oe property

public static $_test