PHP Class Mongolid\Serializer\Type\UTCDatetimeTest

Inheritance: extends TestCas\TestCase
Afficher le fichier Open project: leroy-merlin-br/mongolid

Protected Properties

Свойство Type Description
$dateTime UTCDateTime
$mongoDate MongoDB\BSON\UTCDateTime
$timestamp integer

Méthodes publiques

Méthode Description
setUp ( )
tearDown ( )
testCallUndefinedMethodOfUtcDateTimeShouldCallMongoUtcDateTime ( )
testConstrucorWithInvalidParameterShouldThrowException ( )
testConstructorUsingMongoDateShouldSetMongoDateAndTimestamp ( )
testConstructorUsingNullShouldSetMongoDateAndTimestamp ( )
testConstructorUsingTimestampShouldSetMongoDateAndTimestamp ( )
testConvertShouldRetrieveMongodbUtcDateTime ( )
testShouldGetDateTimeWithProperTimezoneSet ( )
testShouldProperlyEncodeToJson ( )
testUnserializeShouldKeepFormattedDate ( )
testUtcDateTimeShouldBeSerializable ( )

Method Details

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testCallUndefinedMethodOfUtcDateTimeShouldCallMongoUtcDateTime() public méthode

testConstrucorWithInvalidParameterShouldThrowException() public méthode

testConstructorUsingMongoDateShouldSetMongoDateAndTimestamp() public méthode

testConstructorUsingNullShouldSetMongoDateAndTimestamp() public méthode

testConstructorUsingTimestampShouldSetMongoDateAndTimestamp() public méthode

testConvertShouldRetrieveMongodbUtcDateTime() public méthode

testShouldGetDateTimeWithProperTimezoneSet() public méthode

testShouldProperlyEncodeToJson() public méthode

testUnserializeShouldKeepFormattedDate() public méthode

testUtcDateTimeShouldBeSerializable() public méthode

Property Details

$dateTime protected_oe property

protected UTCDateTime,Mongolid\Serializer\Type $dateTime
Résultat UTCDateTime

$mongoDate protected_oe property

protected UTCDateTime,MongoDB\BSON $mongoDate
Résultat MongoDB\BSON\UTCDateTime

$timestamp protected_oe property

protected int $timestamp
Résultat integer