PHP Class Unicodeveloper\Emoji\Test\EmojiTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: unicodeveloper/laravel-emoji

Protected Properties

Свойство Type Description
$emoji

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
getEmojis ( ) : array Get the emojis from emoji.php
invokeMethod ( &$object, string $methodName, array $parameters = [] ) : mixed Call protected/private method of a class.

Method Details

setUp() public méthode

public setUp ( )

testAWrongEmojiNameWasCalled() public méthode

Test that findByAlias gets an unkown emoji name

testAWrongUnicodeValueWasCalled() public méthode

Test that findByUnicode gets an unknown Unicode value

testFindByAliasReturnsAppropriateUnicodeValue() public méthode

Test that the method findByAlias returns the correct unicode value

testFindByNamesReturnsAppropriateUnicodeValue() public méthode

Test that the method findByName returns the correct unicode value

testFindByUnicodeReturnsAppropriateEmojiName() public méthode

Test that the method findByUnicode returns the correct emoji name

testGetEmojis() public méthode

Test the private getEmojis method
public testGetEmojis ( ) : boolean
Résultat boolean

testNonexistentMethod() public méthode

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

testfindByAliasDoesntHaveAnArgument() public méthode

Test that findByAlias doesn't receive any argument

testfindByNameDoesntHaveAnArgument() public méthode

Test that findByName doesn't receive any argument

Property Details

$emoji protected_oe property

protected $emoji