\JStringInflectorTest
Test for the JStringInflector class.
Synopsis
class JStringInflectorTest
extends PHPUnit_Framework_TestCase
{
- // members
- protected JStringInflector $inflector;
- // methods
- public array seedIsCountable()
- public array seedSinglePlural()
- protected void setUp()
- public void test_addRule()
- public void test_addRuleException()
- public void test_getCachedPlural()
- public void test_getCachedSingular()
- public void test_matchRegexRule()
- public void test_setCache()
- public void testAddCountableRule()
- public void testAddPluraliseRule()
- public void testAddSingulariseRule()
- public void testGetInstance()
- public void testIsCountable()
- public void testIsPlural()
- public void testIsSingular()
- public void testToPlural()
- public void testToSingular()
Hierarchy
Extends
Members
protected
- $inflector — JStringInflector
Methods
protected
- setUp() — Sets up the fixture.
public
- seedIsCountable() — Method to seed data to testIsCountable.
- seedSinglePlural() — Method to seed data to testToPlural.
- testAddCountableRule() — Method to test JStringInflector::addCountableRule().
- testAddPluraliseRule() — Method to test JStringInflector::addPluraliseRule().
- testAddSingulariseRule() — Method to test JStringInflector::addSingulariseRule().
- testGetInstance() — Method to test JStringInflector::getInstance().
- testIsCountable() — Method to test JStringInflector::isCountable().
- testIsPlural() — Method to test JStringInflector::isPlural().
- testIsSingular() — Method to test JStringInflector::isSingular().
- testToPlural() — Method to test JStringInflector::toPlural().
- testToSingular() — Method to test JStringInflector::toPlural().
- test_addRule() — Method to test JStringInflector::_addRule().
- test_addRuleException() — Method to test JStringInflector::_addRule().
- test_getCachedPlural() — Method to test JStringInflector::_getCachedPlural().
- test_getCachedSingular() — Method to test JStringInflector::_getCachedSingular().
- test_matchRegexRule() — Method to test JStringInflector::_matchRegexRule().
- test_setCache() — Method to test JStringInflector::_setCache().