PHP Класс Twitter\Tests\Widgets\Buttons\Follow

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

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

Свойство Тип Описание
$button Follow object initialized to 'twitter' screen_name before each test

Открытые методы

Метод Описание
setUp ( ) : void Initialize a Follow object before each test
sizeProvider ( ) : array Test sizes
testGetScreenName ( ) : void Test getting screen_name
testHideCount ( ) : void Test setting count option
testHideScreenName ( ) : void Test hiding show screen_name option
testHideScreenNameFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void Test hiding screen_name from an options array
testSetSize ( string $size, boolean $expected_valid, string $message = '' ) : void Test setting button size
testShowCount ( ) : void Test resetting count option
testShowCountFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void Test setting count from an options array
testShowScreenName ( ) : void Test setting show screen_name option
testsetSizeFromOptionsArray ( string $size, boolean $expected_valid, string $message = '' ) : void Test setting size from an options array

Защищенные методы

Метод Описание
hideCountResult ( ) : void Test if hide screen name was successfully set
hideScreenNameResult ( ) : void Test if hide screen name was successfully set
optionsArraySetUp ( ) : array Create a new array with the base required values expected by the ::fromArray constructor
setSizeResult ( string $size, boolean $expected_valid, string $message = '' ) : void Test if hide screen name was successfully set

Описание методов

hideCountResult() защищенный Метод

Test if hide screen name was successfully set
См. также: ::testShowCount
С версии: 1.0.0
protected hideCountResult ( ) : void
Результат void

hideScreenNameResult() защищенный Метод

Test if hide screen name was successfully set
См. также: ::testHideScreenName
С версии: 1.0.0
protected hideScreenNameResult ( ) : void
Результат void

optionsArraySetUp() защищенный статический Метод

Create a new array with the base required values expected by the ::fromArray constructor
С версии: 1.0.0
protected static optionsArraySetUp ( ) : array
Результат array options array { @type string key @type string screen_name }

setSizeResult() защищенный Метод

Test if hide screen name was successfully set
См. также: ::testHideScreenName
С версии: 1.0.0
protected setSizeResult ( string $size, boolean $expected_valid, string $message = '' ) : void
$size string size
$expected_valid boolean is the passed size expected to pass?
$message string error message
Результат void

setUp() публичный Метод

Initialize a Follow object before each test
С версии: 1.0.0
public setUp ( ) : void
Результат void

sizeProvider() публичный статический Метод

Test sizes
С версии: 1.0.0
public static sizeProvider ( ) : array
Результат array sizes to test { @type array size string, expected validity, message }

testGetScreenName() публичный Метод

The tested function is a getter passthrough to the stored intent
С версии: 1.0.0
public testGetScreenName ( ) : void
Результат void

testHideCount() публичный Метод

Test setting count option
С версии: 1.0.0
public testHideCount ( ) : void
Результат void

testHideScreenName() публичный Метод

Test hiding show screen_name option
С версии: 1.0.0
public testHideScreenName ( ) : void
Результат void

testHideScreenNameFromOptionsArray() публичный Метод

Test hiding screen_name from an options array
С версии: 1.0.0
public testHideScreenNameFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void
$test_value string | integer | boolean falsey value
$message string error message
Результат void

testSetSize() публичный Метод

Test setting button size
С версии: 1.0.0
public testSetSize ( string $size, boolean $expected_valid, string $message = '' ) : void
$size string size
$expected_valid boolean is the passed size expected to pass?
$message string error message
Результат void

testShowCount() публичный Метод

Test resetting count option
С версии: 1.0.0
public testShowCount ( ) : void
Результат void

testShowCountFromOptionsArray() публичный Метод

Test setting count from an options array
С версии: 1.0.0
public testShowCountFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void
$test_value string | integer | boolean truthy value
$message string error message
Результат void

testShowScreenName() публичный Метод

Test setting show screen_name option
С версии: 1.0.0
public testShowScreenName ( ) : void
Результат void

testsetSizeFromOptionsArray() публичный Метод

Test setting size from an options array
С версии: 1.0.0
public testsetSizeFromOptionsArray ( string $size, boolean $expected_valid, string $message = '' ) : void
$size string size
$expected_valid boolean is the passed size expected to pass?
$message string error message
Результат void

Описание свойств

$button защищенное свойство

Follow object initialized to 'twitter' screen_name before each test
С версии: 1.0.0
protected $button