$GLOBALS['sugar_config']['tracker_max_display_length']) { $add = "..."; $cut = $cut - 3; } // Test if the values got converted, and if the original string was chopped to the expected string $this->assertEquals(getTrackerSubstring($value), substr($expected, 0, $cut) . $add, ''); } function providerTestGetTrackerSubstring() { return array( 0 => array("A lot of quotes '''''''''''''''", "A lot of quotes '''''''''''''''"), 1 => array("A lot of quotes <>'\" " > < € €€€€€€€€", "A lot of quotes <>'\" \" > < € €€€€€€€€"), 2 => array("A lot of quotes &", "A lot of quotes &"), ); } } ?>