PHP Класс phpmock\functions\FixedMicrotimeFunctionTest

См. также: FixedMicrotimeFunction
Автор: Markus Malkusch ([email protected])
Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

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

Метод Описание
provideTestConstruct ( ) : array Provides test cases for testConstruct().
provideTestConstructFailsForInvalidArgument ( ) : array Returns test cases for testConstructFailsForInvalidArgument()
testConstruct ( mixed $timestamp, float $expected ) Tests initializing with a timestamp.
testConstructCurrentTime ( ) Tests initializing with the current timestamp
testConstructFailsForInvalidArgument ( $timestamp ) Tests exception for invalid argument in constructor.
testGetCallable ( ) Tests getCallable()
testGetMicrotime ( ) Tests getMicrotime().
testSetMicrotime ( ) Tests setMicrotime().
testSetMicrotimeAsFloat ( ) Tests setMicrotimeAsFloat().

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

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

Provides test cases for testConstruct().
public provideTestConstruct ( ) : array
Результат array

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

Returns test cases for testConstructFailsForInvalidArgument()
public provideTestConstructFailsForInvalidArgument ( ) : array
Результат array Test cases.

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

Tests initializing with a timestamp.
public testConstruct ( mixed $timestamp, float $expected )
$timestamp mixed The tested timestamp.
$expected float The expected timestamp.

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

Tests initializing with the current timestamp

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

Tests exception for invalid argument in constructor.
public testConstructFailsForInvalidArgument ( $timestamp )

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

Tests getCallable()
public testGetCallable ( )

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

Tests getMicrotime().
public testGetMicrotime ( )

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

Tests setMicrotime().
public testSetMicrotime ( )

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

Tests setMicrotimeAsFloat().