Active
Project:
Mockable: Mock objects for Drupal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2013 at 13:21 UTC
Updated:
16 Sep 2013 at 13:21 UTC
Mockable code needs to be in Javascript also. Consider for example, browser detection:
if (navigator.appName == 'Microsoft Internet Explorer') {
...
if (preg_match('/(?i)msie [1-8]/', $_SERVER['HTTP_USER_AGENT'])) {
...
}
It should be possible to mock both of these with a single setting.