Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3282149
ExecPassthruTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
554 B
Referenced Files
None
Subscribers
None
ExecPassthruTestCase.php
View Options
<?php
final
class
ExecPassthruTestCase
extends
PhutilTestCase
{
public
function
testExecPassthru
(
)
{
// NOTE: We're limited in what we can do here easily; this process can't
// read any output from the child process (and it will be sent directly to
// the terminal, which is undesirable). This makes crafting effective unit
// tests a fairly involved process.
$bin
=
$this
->
getSupportExecutable
(
'exit'
)
;
$exec
=
new
PhutilExecPassthru
(
'php -f %R'
,
$bin
)
;
$err
=
$exec
->
execute
(
)
;
$this
->
assertEqual
(
0
,
$err
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Mar 24, 05:39 (4 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1196584
Default Alt Text
ExecPassthruTestCase.php (554 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment