Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2680394
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
Thu, Dec 19, 17:00 (20 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1014855
Default Alt Text
PonderQuestionStatusTestCase.php (667 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment