Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
hide example
$cursor
=
new
Cursor
(
$output
=
$this
->
getOutputStream
(
)
)
;
$cursor
->
savePosition
(
)
;
$this
->
assertEquals
(
"\x1b7",
$this
->
getOutputContent
(
$output
)
)
;
}
public
function
testHide
(
)
{
$cursor
=
new
Cursor
(
$output
=
$this
->
getOutputStream
(
)
)
;
$cursor
->
hide
(
)
;
$this
->
assertEquals
(
"\x1b[?25l",
$this
->
getOutputContent
(
$output
)
)
;
}
public
function
testShow
(
)
{
$cursor
=
new
Cursor
(
$output
=
$this
->
getOutputStream
(
)
)
;
$cursor
->
show
(
)
;
$this
->
assertEquals
(
"\x1b[?25h\x1b[?0c",
$this
->
getOutputContent
(
$output
)
)
;
}