Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93432103
PhutilExtensionsTestCase.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
Thu, Nov 28, 17:26
Size
705 B
Mime Type
text/x-php
Expires
Sat, Nov 30, 17:26 (2 d)
Engine
blob
Format
Raw Data
Handle
22636106
Attached To
rPHU libphutil
PhutilExtensionsTestCase.php
View Options
<?php
final
class
PhutilExtensionsTestCase
extends
PhutilTestCase
{
public
function
testPhutilExtensions
()
{
$root
=
dirname
(
phutil_get_library_root
(
'phutil'
));
$path
=
array
(
$root
,
'support'
,
'phutiltestlib'
,
);
$path
=
implode
(
DIRECTORY_SEPARATOR
,
$path
);
phutil_load_library
(
$path
);
$this
->
assertTrue
(
class_exists
(
'PhutilTestClassA'
));
$this
->
assertTrue
(
class_exists
(
'PhutilTestClassB'
));
$this
->
assertTrue
(
class_exists
(
'PhutilTestClassC'
));
$symbols
=
id
(
new
PhutilSymbolLoader
())
->
setAncestorClass
(
'PhutilTestClassA'
)
->
setConcreteOnly
(
true
)
->
selectAndLoadSymbols
();
$this
->
assertEqual
(
2
,
count
(
$symbols
));
}
}
Event Timeline
Log In to Comment