Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F27326796
YsulApacheTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
791 B
Referenced Files
None
Subscribers
None
YsulApacheTest.php
View Options
<?php
require_once
'traits/assertHttp.php'
;
class
YsulApacheTest
extends
PHPUnit_Framework_TestCase
{
use
assertHttp
;
/**
* Apache server hostname to tet
*/
const
SERVER
=
'ysul.nasqueron.org'
;
/**
* Apache port
*/
const
PORT
=
3200
;
/**
* Path to SuEXEC binary
*/
const
SUEXEC
=
'/usr/local/sbin/suexec'
;
public
function
testApacheIsLive
()
{
$url
=
"http://"
.
self
::
SERVER
.
":"
.
self
::
PORT
.
"/"
;
$this
->
assertHttpResponseCode
(
200
,
$url
,
"Apache looks down."
);
}
public
function
testSuEXECHasBeenInstalled
()
{
// Reported by amj on T823, see also T508 and T517.
if
(
gethostname
()
!==
self
::
SERVER
)
{
$this
->
markTestSkipped
(
"This test can only run on "
.
self
::
SERVER
);
};
$this
->
assertTrue
(
file_exists
(
self
::
SUEXEC
)
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 5, 11:45 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3681884
Default Alt Text
YsulApacheTest.php (791 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment