PHP Class Mongolid\Serializer\Type\ObjectIDTest

Inheritance: extends TestCas\TestCase
Datei anzeigen Open project: leroy-merlin-br/mongolid

Protected Properties

Property Type Description
$mongoId MongoDB\BSON\ObjectID
$stringId string

Public Methods

Method Description
setUp ( )
tearDown ( )
testConstructorShouldCastMongodbObjectIdToString ( )
testConstructorShouldThrowExceptionWithInvalidStrings ( )
testConvertShouldRetrieveMongodbObjectId ( )
testObjectIdShouldBeSerializable ( )
testShouldBeCastableToString ( )
testShouldProperlyEncodeToJson ( )
testUnserializeShouldKeepStringId ( )

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testConstructorShouldCastMongodbObjectIdToString() public method

testConstructorShouldThrowExceptionWithInvalidStrings() public method

testConvertShouldRetrieveMongodbObjectId() public method

testObjectIdShouldBeSerializable() public method

testShouldBeCastableToString() public method

testShouldProperlyEncodeToJson() public method

testUnserializeShouldKeepStringId() public method

Property Details

$mongoId protected_oe property

protected ObjectID,MongoDB\BSON $mongoId
return MongoDB\BSON\ObjectID

$stringId protected_oe property

protected string $stringId
return string