PHP 클래스 Mongolid\Serializer\Type\UTCDatetimeTest

상속: extends TestCas\TestCase
파일 보기 프로젝트 열기: leroy-merlin-br/mongolid

보호된 프로퍼티들

프로퍼티 타입 설명
$dateTime UTCDateTime
$mongoDate MongoDB\BSON\UTCDateTime
$timestamp integer

공개 메소드들

메소드 설명
setUp ( )
tearDown ( )
testCallUndefinedMethodOfUtcDateTimeShouldCallMongoUtcDateTime ( )
testConstrucorWithInvalidParameterShouldThrowException ( )
testConstructorUsingMongoDateShouldSetMongoDateAndTimestamp ( )
testConstructorUsingNullShouldSetMongoDateAndTimestamp ( )
testConstructorUsingTimestampShouldSetMongoDateAndTimestamp ( )
testConvertShouldRetrieveMongodbUtcDateTime ( )
testShouldGetDateTimeWithProperTimezoneSet ( )
testShouldProperlyEncodeToJson ( )
testUnserializeShouldKeepFormattedDate ( )
testUtcDateTimeShouldBeSerializable ( )

메소드 상세

setUp() 공개 메소드

public setUp ( )

tearDown() 공개 메소드

public tearDown ( )

testCallUndefinedMethodOfUtcDateTimeShouldCallMongoUtcDateTime() 공개 메소드

testConstrucorWithInvalidParameterShouldThrowException() 공개 메소드

testConstructorUsingMongoDateShouldSetMongoDateAndTimestamp() 공개 메소드

testConstructorUsingNullShouldSetMongoDateAndTimestamp() 공개 메소드

testConstructorUsingTimestampShouldSetMongoDateAndTimestamp() 공개 메소드

testConvertShouldRetrieveMongodbUtcDateTime() 공개 메소드

testShouldGetDateTimeWithProperTimezoneSet() 공개 메소드

testShouldProperlyEncodeToJson() 공개 메소드

testUnserializeShouldKeepFormattedDate() 공개 메소드

testUtcDateTimeShouldBeSerializable() 공개 메소드

프로퍼티 상세

$dateTime 보호되어 있는 프로퍼티

protected UTCDateTime,Mongolid\Serializer\Type $dateTime
리턴 UTCDateTime

$mongoDate 보호되어 있는 프로퍼티

protected UTCDateTime,MongoDB\BSON $mongoDate
리턴 MongoDB\BSON\UTCDateTime

$timestamp 보호되어 있는 프로퍼티

protected int $timestamp
리턴 integer