Documentation

StringTest extends TestCase
in package

Table of Contents

testCamelCase2UnderscoreConversions()  : mixed
Tests some of the most common usages of the camel2underscores function. This function is usually helpful when converting class names to environments which are not case-sensitive.
testEscape()  : mixed
Tests whether the escape method properly removes unsafe HTML
testQuote()  : mixed
For HTML tags, we need the system to quote the content too.
testSlugPunctuation()  : mixed
testSlugSpaces()  : mixed
testSlugSpecialChars()  : mixed
testSlugUppercase()  : mixed
testUnderscore2CamelCaseConversions()  : mixed
Tests the function that converts underscore separated names into camel case identifiers.
testURL()  : mixed
Replacing URLs in text is actually surprisingly difficult.
testURLWithHash()  : mixed
Replacing URLs in text is actually surprisingly difficult.

Methods

testCamelCase2UnderscoreConversions()

Tests some of the most common usages of the camel2underscores function. This function is usually helpful when converting class names to environments which are not case-sensitive.

public testCamelCase2UnderscoreConversions() : mixed
Tags
covers
Return values
mixed

testEscape()

Tests whether the escape method properly removes unsafe HTML

public testEscape() : mixed
Tags
covers
Return values
mixed

testQuote()

For HTML tags, we need the system to quote the content too.

public testQuote() : mixed
Tags
covers
Return values
mixed

testSlugPunctuation()

public testSlugPunctuation() : mixed
Return values
mixed

testSlugSpaces()

public testSlugSpaces() : mixed
Return values
mixed

testSlugSpecialChars()

public testSlugSpecialChars() : mixed
Return values
mixed

testSlugUppercase()

public testSlugUppercase() : mixed
Return values
mixed

testUnderscore2CamelCaseConversions()

Tests the function that converts underscore separated names into camel case identifiers.

public testUnderscore2CamelCaseConversions() : mixed
Tags
covers
Return values
mixed

testURL()

Replacing URLs in text is actually surprisingly difficult.

public testURL() : mixed
Tags
covers
Return values
mixed

testURLWithHash()

Replacing URLs in text is actually surprisingly difficult.

public testURLWithHash() : mixed
Tags
covers
Return values
mixed

Search results