PHP Класс Unicodeveloper\Emoji\Test\EmojiTest

Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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