Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
finalizeTestBuilder example
yield
[
null,
[
null
]
]
;
yield
[
[
'value'
]
,
[
'value'
]
]
;
}
public
function
testThenInvalid
(
)
{
$this
->
expectException
(
InvalidConfigurationException::
class
)
;
$test
=
$this
->
getTestBuilder
(
)
->
ifString
(
)
->
thenInvalid
(
'Invalid value'
)
->
end
(
)
;
$this
->
finalizeTestBuilder
(
$test
)
;
}
public
function
testThenUnsetExpression
(
)
{
$test
=
$this
->
getTestBuilder
(
)
->
ifString
(
)
->
thenUnset
(
)
->
end
(
)
;
$this
->
assertEquals
(
[
]
,
$this
->
finalizeTestBuilder
(
$test
)
)
;
}