Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
removeException example
}
public
function
testHasException
(
)
: void
{
static
::
assertTrue
(
$this
->exceptionRecord->
hasException
(
)
)
;
static
::
assertInstanceOf
(
\Throwable::
class
,
$this
->exceptionRecord->
getException
(
)
)
;
}
public
function
testRemoveException
(
)
: void
{
$this
->exceptionRecord->
removeException
(
)
;
static
::
assertFalse
(
$this
->exceptionRecord->
hasException
(
)
)
;
static
::
assertNull
(
$this
->exceptionRecord->
getException
(
)
)
;
}
public
function
testReplaceException
(
)
: void
{
$this
->exceptionRecord->
removeException
(
)
;
$newException
=
$this
->
createMock
(
\Throwable::
class
)
;
$this
->exceptionRecord->
setException
(
$newException
)
;
static
::
assertTrue
(
$this
->exceptionRecord->
hasException
(
)
)
;
}
}