[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorCelerityTestCase extends PhabricatorTestCase { 4 5 /** 6 * This is more of an acceptance test case instead of a unit test. It verifies 7 * that the Celerity map is up-to-date. 8 */ 9 public function testCelerityMaps() { 10 $resources_map = CelerityPhysicalResources::getAll(); 11 12 foreach ($resources_map as $resources) { 13 $old_map = new CelerityResourceMap($resources); 14 15 $new_map = id(new CelerityResourceMapGenerator($resources)) 16 ->generate(); 17 18 $this->assertEqual( 19 $new_map->getNameMap(), 20 $old_map->getNameMap()); 21 $this->assertEqual( 22 $new_map->getSymbolMap(), 23 $old_map->getSymbolMap()); 24 $this->assertEqual( 25 $new_map->getRequiresMap(), 26 $old_map->getRequiresMap()); 27 $this->assertEqual( 28 $new_map->getPackageMap(), 29 $old_map->getPackageMap()); 30 } 31 } 32 33 }
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 |