PHP 클래스 Doctrine\Tests\Common\Inflector\InflectorTest

상속: extends Doctrine\Tests\DoctrineTestCase
파일 보기 프로젝트 열기: doctrine/inflector

공개 메소드들

메소드 설명
dataSampleWords ( ) : array Singular & Plural test data. Returns an array of sample words.
dataStringsCamelize ( ) : array Strings which are used for testCamelize.
dataStringsClassify ( ) : array Strings which are used for testClassify.
dataStringsTableize ( ) : array Strings which are used for testTableize.
testCamelize ( $expected, $word ) : void
testClassify ( $expected, $word ) : void
testCustomPluralRule ( ) : void testCustomPluralRule method
testCustomRuleWithReset ( ) : void Test resetting inflection rules.
testCustomSingularRule ( ) : void testCustomSingularRule method
testInflectingPlurals ( $singular, $plural ) : void testInflectingPlurals method
testInflectingSingulars ( $singular, $plural ) : void testInflectingSingulars method
testRulesClearsCaches ( ) : void test that setting new rules clears the inflector caches.
testTableize ( $expected, $word ) : void
testUcwords ( ) : void Test basic ucwords functionality.
testUcwordsWithCustomDelimeters ( ) : void Test ucwords functionality with custom delimeters.

메소드 상세

dataSampleWords() 공개 메소드

Singular & Plural test data. Returns an array of sample words.
public dataSampleWords ( ) : array
리턴 array

dataStringsCamelize() 공개 메소드

Strings which are used for testCamelize.
public dataStringsCamelize ( ) : array
리턴 array

dataStringsClassify() 공개 메소드

Strings which are used for testClassify.
public dataStringsClassify ( ) : array
리턴 array

dataStringsTableize() 공개 메소드

Strings which are used for testTableize.
public dataStringsTableize ( ) : array
리턴 array

testCamelize() 공개 메소드

public testCamelize ( $expected, $word ) : void
$expected
$word
리턴 void

testClassify() 공개 메소드

public testClassify ( $expected, $word ) : void
$expected
$word
리턴 void

testCustomPluralRule() 공개 메소드

testCustomPluralRule method
public testCustomPluralRule ( ) : void
리턴 void

testCustomRuleWithReset() 공개 메소드

Test resetting inflection rules.
public testCustomRuleWithReset ( ) : void
리턴 void

testCustomSingularRule() 공개 메소드

testCustomSingularRule method
public testCustomSingularRule ( ) : void
리턴 void

testInflectingPlurals() 공개 메소드

testInflectingPlurals method
public testInflectingPlurals ( $singular, $plural ) : void
리턴 void

testInflectingSingulars() 공개 메소드

testInflectingSingulars method
public testInflectingSingulars ( $singular, $plural ) : void
리턴 void

testRulesClearsCaches() 공개 메소드

test that setting new rules clears the inflector caches.
public testRulesClearsCaches ( ) : void
리턴 void

testTableize() 공개 메소드

public testTableize ( $expected, $word ) : void
$expected
$word
리턴 void

testUcwords() 공개 메소드

Test basic ucwords functionality.
public testUcwords ( ) : void
리턴 void

testUcwordsWithCustomDelimeters() 공개 메소드

Test ucwords functionality with custom delimeters.