PHP Class Jyxo\StringUtilTest

Author: Jakub Tománek
Author: Jaroslav Hanslík
Author: Ondřej Nešpor
Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: jyxo/php

Méthodes publiques

Méthode Description
testCrc ( ) Test the crc generator.
testCut ( ) Tests string trimming.
testCutWords ( ) Tests word trimming.
testEscape ( ) Tests special HTML characters escaping.
testFixLineEnding ( ) Tests line ending conversions.
testFormatBytes ( ) Tests byte size conversion.
testLcfirst ( ) Tests first letter lowercase.
testObfuscateEmail ( ) Tests email address obfuscation.
testRandom ( ) Tests the random string generator.

Private Methods

Méthode Description
checkStringCut ( string $string, integer $max = 16, string $etc = '...' ) : string Checks one string.
checkStringWordCut ( string $string, integer $max = 8, string $etc = '...' ) : string Checks one string.

Method Details

testCrc() public méthode

Test the crc generator.
public testCrc ( )

testCut() public méthode

Tests string trimming.
public testCut ( )

testCutWords() public méthode

Tests word trimming.
public testCutWords ( )

testEscape() public méthode

Tests special HTML characters escaping.
public testEscape ( )

testFixLineEnding() public méthode

Tests line ending conversions.
public testFixLineEnding ( )

testFormatBytes() public méthode

Tests byte size conversion.
public testFormatBytes ( )

testLcfirst() public méthode

Tests first letter lowercase.
public testLcfirst ( )

testObfuscateEmail() public méthode

Tests email address obfuscation.
public testObfuscateEmail ( )

testRandom() public méthode

Tests the random string generator.
public testRandom ( )