PHP 클래스 Jyxo\StringUtilTest

저자: Jakub Tománek
저자: Jaroslav Hanslík
저자: Ondřej Nešpor
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: jyxo/php

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
checkStringCut ( string $string, integer $max = 16, string $etc = '...' ) : string Checks one string.
checkStringWordCut ( string $string, integer $max = 8, string $etc = '...' ) : string Checks one string.

메소드 상세

testCrc() 공개 메소드

Test the crc generator.
public testCrc ( )

testCut() 공개 메소드

Tests string trimming.
public testCut ( )

testCutWords() 공개 메소드

Tests word trimming.
public testCutWords ( )

testEscape() 공개 메소드

Tests special HTML characters escaping.
public testEscape ( )

testFixLineEnding() 공개 메소드

Tests line ending conversions.
public testFixLineEnding ( )

testFormatBytes() 공개 메소드

Tests byte size conversion.
public testFormatBytes ( )

testLcfirst() 공개 메소드

Tests first letter lowercase.
public testLcfirst ( )

testObfuscateEmail() 공개 메소드

Tests email address obfuscation.
public testObfuscateEmail ( )

testRandom() 공개 메소드

Tests the random string generator.
public testRandom ( )