PHP Class lithium\tests\cases\util\StringTest

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

Public Methods

Method Description
testCleanInsert ( )
testCompare ( )
testHash ( ) Tests hash generation using String::hash().
testInsert ( )
testInsertWithEmptyArray ( ) Test that an empty array is not added to the string
testInsertWithObject ( ) Tests casting/inserting of custom objects with String::insert().
testInsertWithUnusedNumericKey ( ) Tests that text replacements with String::insert() using key/value pairs are not mis-handled if numeric keys are present in the array (only if they appear first).
testInsertingEmptyValues ( ) Verifies that String::insert() doesn't completely ignore empty values.
testMultipleUuidGeneration ( )
testRandom64Generator ( ) Tests the random number generator with base64 encoding.
testRandomGenerator ( ) Tests the random number generator.
testStringExtraction ( ) Tests the String::extract() regex helper method.
testStringInsertWithQuestionMark ( )
testTokenize ( )
testUuidGeneration ( )

Method Details

testCleanInsert() public method

public testCleanInsert ( )

testCompare() public method

public testCompare ( )

testHash() public method

Tests hash generation using String::hash().
public testHash ( )

testInsert() public method

public testInsert ( )

testInsertWithEmptyArray() public method

Test that an empty array is not added to the string

testInsertWithObject() public method

Tests casting/inserting of custom objects with String::insert().

testInsertWithUnusedNumericKey() public method

Tests that text replacements with String::insert() using key/value pairs are not mis-handled if numeric keys are present in the array (only if they appear first).

testInsertingEmptyValues() public method

Verifies that String::insert() doesn't completely ignore empty values.

testMultipleUuidGeneration() public method

testRandom64Generator() public method

Tests the random number generator with base64 encoding.

testRandomGenerator() public method

Tests the random number generator.
public testRandomGenerator ( )

testStringExtraction() public method

Tests the String::extract() regex helper method.

testStringInsertWithQuestionMark() public method

testTokenize() public method

public testTokenize ( )

testUuidGeneration() public method

public testUuidGeneration ( )