1 | <?php |
||
3 | class MapUtilTest extends SapphireTest { |
||
4 | |||
5 | /* |
||
|
|||
6 | Other tests: |
||
7 | 1) List, ArrayList, DataList, null for get_map |
||
8 | 2) Negative and zero map sizes |
||
9 | 3) Invalid map type |
||
10 | |||
11 | |||
12 | public function setUpOnce() { |
||
13 | $this->requiredExtensions = array( |
||
14 | 'Member' => array('MapExtension') |
||
15 | ); |
||
16 | parent::setupOnce(); |
||
17 | } |
||
18 | */ |
||
19 | |||
20 | public function test_set_api_key() { |
||
26 | |||
27 | public function test_get_set_map_already_rendered() { |
||
33 | |||
34 | public function test_set_map_size() { |
||
39 | |||
40 | public function testSanitizeEmptyString() { |
||
46 | |||
47 | public function testSanitizeAlreadySanitized() { |
||
53 | |||
54 | public function testSanitizeSlashN() { |
||
60 | |||
61 | public function testSanitizeSlashT() { |
||
67 | |||
68 | public function testSanitizeSlashR() { |
||
74 | |||
75 | public function testSingularMappableItem() { |
||
88 | |||
89 | private function htmlForMap() { |
||
94 | |||
95 | |||
96 | // These appear to test code that's not used |
||
97 | public function test_set_center() { |
||
103 | |||
104 | public function test_set_map_type() { |
||
110 | |||
111 | public function test_set_info_window_width() { |
||
114 | |||
115 | public function test_set_icon_size() { |
||
118 | |||
119 | } |
||
120 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.