Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Mongolid
Serializer
Type
ObjectIDTest
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
public
testConstructorShouldCastMongodbObjectIdToString
( )
testConstructorShouldThrowExceptionWithInvalidStrings()
public
method
public
testConstructorShouldThrowExceptionWithInvalidStrings
( )
testConvertShouldRetrieveMongodbObjectId()
public
method
public
testConvertShouldRetrieveMongodbObjectId
( )
testObjectIdShouldBeSerializable()
public
method
public
testObjectIdShouldBeSerializable
( )
testShouldBeCastableToString()
public
method
public
testShouldBeCastableToString
( )
testShouldProperlyEncodeToJson()
public
method
public
testShouldProperlyEncodeToJson
( )
testUnserializeShouldKeepStringId()
public
method
public
testUnserializeShouldKeepStringId
( )
Property Details
$mongoId
protected_oe property
protected
ObjectID,MongoDB\BSON
$mongoId
return
MongoDB\BSON\ObjectID
$stringId
protected_oe property
protected
string
$stringId
return
string