Added PHPUnit as a composer dependency.
Also, ignoring vendor/* directory.
Merge branch 'composer-phpunit' into devel
Added getHeader method to more easily extract hdrs.
Merge branch 'devel' of https://github.com/serbanghita/Mobile-Detect into devel
Added dependecy injection to the constructor.
The constructor is backwards compatible so existing scripts won't break.
However, this adds better testability in addition to better
compatibility with frameworks.
Tested and fixed the getHttpHeader method.
Mostly style changes in Mobile_Detect.
Also, added a http header setter test.
Missed an opportunity for a named constant.
The setHttpHeader works consistently now.
Regardless of whether _SERVER or the parameter is used, only
HTTP_ prexifed headers are used.
__call now throws an exception
This happens when the method doesn't start with "is" ends up here. That
means the method doesn't exist and we're not trying to invoke the "is"
magic functionality.
UA_List.inc.php now returns the array
Instead of setting a global variable $UA_List which is harder to work
with. Also modified the VendorsTest.php to use the return of the include
rather than the $UA_List global.
Added a test which is very similar to VendorsTest
This test, however, first converts the UA_Lists.inc.php to a
de-normalized JSON file and notifies you which tests were skipped due to
insufficient information in the user agent list. Also notifies how many
tests were run which is the same as how many user agents are tested.
Added hashing to the JSON generation.
Now, the ualist.json file will only change/regenerate when the
UA_List.inc.php file changes.
Missed this detail
Fixed comment to indicate default parameter
STYLE - fix BasicsTest
STYLE - fix UserAgentTest.php
STYLE - fix VendorsTest
STYLE - silly fix of bootstrap.php
STYLE - fix Mobile_Detect