Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
isMagicGetEnabled example
protected
PropertyAccessorBuilder
$builder
;
protected
function
setUp
(
)
: void
{
$this
->builder =
new
PropertyAccessorBuilder
(
)
;
}
public
function
testEnableMagicGet
(
)
{
$this
->
assertSame
(
$this
->builder,
$this
->builder->
enableMagicGet
(
)
)
;
$this
->
assertTrue
(
$this
->builder->
isMagicGetEnabled
(
)
)
;
}
public
function
testDisableMagicGet
(
)
{
$this
->
assertSame
(
$this
->builder,
$this
->builder->
disableMagicGet
(
)
)
;
$this
->
assertFalse
(
$this
->builder->
disableMagicGet
(
)
->
isMagicGetEnabled
(
)
)
;
}
public
function
testEnableMagicSet
(
)
{
$this
->
assertSame
(
$this
->builder,
$this
->builder->
enableMagicSet
(
)
)
;