PHP Class Mongolid\Serializer\Type\ObjectIDTest

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

Protected Properties

Свойство Type Description
$mongoId MongoDB\BSON\ObjectID
$stringId string

Méthodes publiques

Méthode Description
setUp ( )
tearDown ( )
testConstructorShouldCastMongodbObjectIdToString ( )
testConstructorShouldThrowExceptionWithInvalidStrings ( )
testConvertShouldRetrieveMongodbObjectId ( )
testObjectIdShouldBeSerializable ( )
testShouldBeCastableToString ( )
testShouldProperlyEncodeToJson ( )
testUnserializeShouldKeepStringId ( )

Method Details

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testConstructorShouldCastMongodbObjectIdToString() public méthode

testConstructorShouldThrowExceptionWithInvalidStrings() public méthode

testConvertShouldRetrieveMongodbObjectId() public méthode

testObjectIdShouldBeSerializable() public méthode

testShouldBeCastableToString() public méthode

testShouldProperlyEncodeToJson() public méthode

testUnserializeShouldKeepStringId() public méthode

Property Details

$mongoId protected_oe property

protected ObjectID,MongoDB\BSON $mongoId
Résultat MongoDB\BSON\ObjectID

$stringId protected_oe property

protected string $stringId
Résultat string