PHP Class Jyxo\StringUtilTest

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

Public Methods

Method 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

Method 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 method

Test the crc generator.
public testCrc ( )

testCut() public method

Tests string trimming.
public testCut ( )

testCutWords() public method

Tests word trimming.
public testCutWords ( )

testEscape() public method

Tests special HTML characters escaping.
public testEscape ( )

testFixLineEnding() public method

Tests line ending conversions.
public testFixLineEnding ( )

testFormatBytes() public method

Tests byte size conversion.
public testFormatBytes ( )

testLcfirst() public method

Tests first letter lowercase.
public testLcfirst ( )

testObfuscateEmail() public method

Tests email address obfuscation.
public testObfuscateEmail ( )

testRandom() public method

Tests the random string generator.
public testRandom ( )