Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
PropertyAccessorCollectionTestCase_CarOnlyRemover example
$this
->
assertTrue
(
$this
->propertyAccessor->
isWritable
(
$car
, 'axes'
)
)
;
}
public
function
testIsWritableReturnsFalseIfOnlyAdderExists
(
)
{
$car
=
new
PropertyAccessorCollectionTestCase_CarOnlyAdder
(
)
;
$this
->
assertFalse
(
$this
->propertyAccessor->
isWritable
(
$car
, 'axes'
)
)
;
}
public
function
testIsWritableReturnsFalseIfOnlyRemoverExists
(
)
{
$car
=
new
PropertyAccessorCollectionTestCase_CarOnlyRemover
(
)
;
$this
->
assertFalse
(
$this
->propertyAccessor->
isWritable
(
$car
, 'axes'
)
)
;
}
public
function
testIsWritableReturnsFalseIfNoAdderNorRemoverExists
(
)
{
$car
=
new
PropertyAccessorCollectionTestCase_CarNoAdderAndRemover
(
)
;
$this
->
assertFalse
(
$this
->propertyAccessor->
isWritable
(
$car
, 'axes'
)
)
;
}
public
function
testSetValueFailsIfAdderAndRemoverExistButValueIsNotTraversable
(
)
{