PHP 클래스 Unicodeveloper\Emoji\Test\EmojiTest

상속: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: unicodeveloper/laravel-emoji

보호된 프로퍼티들

프로퍼티 타입 설명
$emoji

공개 메소드들

메소드 설명
setUp ( )
testAWrongEmojiNameWasCalled ( ) Test that findByAlias gets an unkown emoji name
testAWrongUnicodeValueWasCalled ( ) Test that findByUnicode gets an unknown Unicode value
testFindByAliasReturnsAppropriateUnicodeValue ( ) : boolean Test that the method findByAlias returns the correct unicode value
testFindByNamesReturnsAppropriateUnicodeValue ( ) : boolean Test that the method findByName returns the correct unicode value
testFindByUnicodeReturnsAppropriateEmojiName ( ) : boolean Test that the method findByUnicode returns the correct emoji name
testGetEmojis ( ) : boolean Test the private getEmojis method
testNonexistentMethod ( ) Test that a method that does not exist throws the right Exception
testfindByAliasDoesntHaveAnArgument ( ) Test that findByAlias doesn't receive any argument
testfindByNameDoesntHaveAnArgument ( ) Test that findByName doesn't receive any argument

비공개 메소드들

메소드 설명
getEmojis ( ) : array Get the emojis from emoji.php
invokeMethod ( &$object, string $methodName, array $parameters = [] ) : mixed Call protected/private method of a class.

메소드 상세

setUp() 공개 메소드

public setUp ( )

testAWrongEmojiNameWasCalled() 공개 메소드

Test that findByAlias gets an unkown emoji name

testAWrongUnicodeValueWasCalled() 공개 메소드

Test that findByUnicode gets an unknown Unicode value

testFindByAliasReturnsAppropriateUnicodeValue() 공개 메소드

Test that the method findByAlias returns the correct unicode value

testFindByNamesReturnsAppropriateUnicodeValue() 공개 메소드

Test that the method findByName returns the correct unicode value

testFindByUnicodeReturnsAppropriateEmojiName() 공개 메소드

Test that the method findByUnicode returns the correct emoji name

testGetEmojis() 공개 메소드

Test the private getEmojis method
public testGetEmojis ( ) : boolean
리턴 boolean

testNonexistentMethod() 공개 메소드

Test that a method that does not exist throws the right Exception

testfindByAliasDoesntHaveAnArgument() 공개 메소드

Test that findByAlias doesn't receive any argument

testfindByNameDoesntHaveAnArgument() 공개 메소드

Test that findByName doesn't receive any argument

프로퍼티 상세

$emoji 보호되어 있는 프로퍼티

protected $emoji