Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
booleanPrototype example
public
function
testPrototypeScalar
(
)
{
$node
=
new
ArrayNodeDefinition
(
'root'
)
;
$this
->
assertEquals
(
$node
->
prototype
(
'scalar'
)
,
$node
->
scalarPrototype
(
)
)
;
}
public
function
testPrototypeBoolean
(
)
{
$node
=
new
ArrayNodeDefinition
(
'root'
)
;
$this
->
assertEquals
(
$node
->
prototype
(
'boolean'
)
,
$node
->
booleanPrototype
(
)
)
;
}
public
function
testPrototypeInteger
(
)
{
$node
=
new
ArrayNodeDefinition
(
'root'
)
;
$this
->
assertEquals
(
$node
->
prototype
(
'integer'
)
,
$node
->
integerPrototype
(
)
)
;
}
public
function
testPrototypeFloat
(
)
{
$node
=
new
ArrayNodeDefinition
(
'root'
)
;