Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92654066
ExecPassthruTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 22, 10:30
Size
494 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 10:30 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
22479122
Attached To
rPHU libphutil
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.
$exec
=
new
PhutilExecPassthru
(
'exit'
);
$err
=
$exec
->
execute
();
$this
->
assertEqual
(
0
,
$err
);
}
}
Event Timeline
Log In to Comment