Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892135
PhabricatorOwnersPackageTestCase.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
1010 B
Referenced Files
None
Subscribers
None
PhabricatorOwnersPackageTestCase.php
View Options
<?php
final
class
PhabricatorOwnersPackageTestCase
extends
PhabricatorTestCase
{
public
function
testFindLongestPathsPerPackage
(
)
{
$rows
=
array
(
array
(
'id'
=>
1
,
'excluded'
=>
0
,
'path'
=>
'src/'
)
,
array
(
'id'
=>
1
,
'excluded'
=>
1
,
'path'
=>
'src/releeph/'
)
,
array
(
'id'
=>
2
,
'excluded'
=>
0
,
'path'
=>
'src/releeph/'
)
,
)
;
$paths
=
array
(
'src/'
=>
array
(
'src/a.php'
=>
true
,
'src/releeph/b.php'
=>
true
)
,
'src/releeph/'
=>
array
(
'src/releeph/b.php'
=>
true
)
,
)
;
$this
->
assertEqual
(
array
(
1
=>
strlen
(
'src/'
)
,
2
=>
strlen
(
'src/releeph/'
)
,
)
,
PhabricatorOwnersPackage
::
findLongestPathsPerPackage
(
$rows
,
$paths
)
)
;
$paths
=
array
(
'src/'
=>
array
(
'src/releeph/b.php'
=>
true
)
,
'src/releeph/'
=>
array
(
'src/releeph/b.php'
=>
true
)
,
)
;
$this
->
assertEqual
(
array
(
2
=>
strlen
(
'src/releeph/'
)
,
)
,
PhabricatorOwnersPackage
::
findLongestPathsPerPackage
(
$rows
,
$paths
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 16:17 (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126404
Default Alt Text
PhabricatorOwnersPackageTestCase.php (1010 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment