Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97864671
PhutilInvalidStateExceptionTestCase.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
Mon, Jan 6, 22:26
Size
398 B
Mime Type
text/x-php
Expires
Wed, Jan 8, 22:26 (2 d)
Engine
blob
Format
Raw Data
Handle
23422730
Attached To
rPHU libphutil
PhutilInvalidStateExceptionTestCase.php
View Options
<?php
final
class
PhutilInvalidStateExceptionTestCase
extends
PhutilTestCase
{
public
function
testException
()
{
try
{
throw
new
PhutilInvalidStateException
(
'someMethod'
);
}
catch
(
PhutilInvalidStateException
$ex
)
{
$this
->
assertEqual
(
__FUNCTION__
,
$ex
->
getCallee
());
$this
->
assertEqual
(
'someMethod'
,
$ex
->
getFunction
());
}
}
}
Event Timeline
Log In to Comment