[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorOwnersPackageTestCase extends PhabricatorTestCase { 4 5 function testFindLongestPathsPerPackage() { 6 $rows = array( 7 array('id' => 1, 'excluded' => 0, 'path' => 'src/'), 8 array('id' => 1, 'excluded' => 1, 'path' => 'src/releeph/'), 9 array('id' => 2, 'excluded' => 0, 'path' => 'src/releeph/'), 10 ); 11 12 $paths = array( 13 'src/' => array('src/a.php' => true, 'src/releeph/b.php' => true), 14 'src/releeph/' => array('src/releeph/b.php' => true), 15 ); 16 $this->assertEqual( 17 array( 18 1 => strlen('src/'), 19 2 => strlen('src/releeph/'), 20 ), 21 PhabricatorOwnersPackage::findLongestPathsPerPackage($rows, $paths)); 22 23 $paths = array( 24 'src/' => array('src/releeph/b.php' => true), 25 'src/releeph/' => array('src/releeph/b.php' => true), 26 ); 27 $this->assertEqual( 28 array( 29 2 => strlen('src/releeph/'), 30 ), 31 PhabricatorOwnersPackage::findLongestPathsPerPackage($rows, $paths)); 32 } 33 34 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |