PHP 클래스 phpmock\functions\FixedMicrotimeFunctionTest

또한 보기: FixedMicrotimeFunction
저자: Markus Malkusch ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: php-mock/php-mock

공개 메소드들

메소드 설명
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().