Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895589
PonderQuestionStatusTestCase.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
667 B
Referenced Files
None
Subscribers
None
PonderQuestionStatusTestCase.php
View Options
<?php
final
class
PonderQuestionStatusTestCase
extends
PhutilTestCase
{
public
function
testClosedStatuses
(
)
{
$statuses
=
PonderQuestionStatus
::
getQuestionStatusClosedMap
(
)
;
foreach
(
$statuses
as
$status
)
{
$question
=
new
PonderQuestion
(
)
;
$question
->
setStatus
(
$status
)
;
$this
->
assertEqual
(
true
,
$question
->
isStatusClosed
(
)
)
;
}
}
public
function
testOpenedStatuses
(
)
{
$statuses
=
PonderQuestionStatus
::
getQuestionStatusOpenMap
(
)
;
foreach
(
$statuses
as
$status
)
{
$question
=
new
PonderQuestion
(
)
;
$question
->
setStatus
(
$status
)
;
$this
->
assertEqual
(
false
,
$question
->
isStatusClosed
(
)
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:42 (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129056
Default Alt Text
PonderQuestionStatusTestCase.php (667 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment