Skip to content

Commit 8626ba3

Browse files
committed
added unit testing, added better docs
1 parent 19878d6 commit 8626ba3

File tree

12 files changed

+4597
-55
lines changed

12 files changed

+4597
-55
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
2-
vendor
2+
vendor
3+
.phpunit.result.cache

CHANGELOG.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project **attempts** to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) while applying
6+
changes when it socially makes sense.
7+
8+
## [Unreleased]
9+
10+
## [1.9.2] - 2019-06-26
11+
### Added
12+
- PHPUnit Tests for Firefox and Chrome (2843 tests, 5686 assertions)
13+
- Stronger tests for Firefox
14+
15+
## [1.9.1] - 2019-06-19
16+
### Added
17+
6/19/2019: Update (Version 1.9.1)
18+
* Added Firefox iOS (gejobj)
19+
* Corrected 'Vivalidi' to 'Vivaldi' (adaxi)
20+
* Reset enhancement (yahasana)
21+
* Enforce using precise distribution until End Of Life for Travis CI (bburnichon)
22+
* Lazy load browser class on demand (bburnichon)
23+
24+
## 1.9.0 - 2010-08-20
25+
### Added
26+
* Added MSN Explorer Browser
27+
* Added Bing/MSN Robot
28+
* Added the Android Platform
29+
### Fixed
30+
* Fixed issue with Android 1.6/2.2
31+
32+
## 1.8.0 - 2010-04-27
33+
## Fixed
34+
* Added iPad support
35+
36+
## 1.7.0 - 2010-03-07
37+
### Added
38+
* Added FreeBSD Platform
39+
* Added OpenBSD Platform
40+
* Added NetBSD Platform
41+
* Added SunOS Platform
42+
* Added OpenSolaris Platform
43+
* Added support of the Iceweazel Browser
44+
* Added isChromeFrame() call to check if chromeframe is in use
45+
* Moved the Opera check in front of the Firefox check due to legacy Opera User Agents
46+
* Added the __toString() method (Thanks Deano)
47+
## Removed
48+
* Almost all of Gary's original code has been replaced
49+
## Fixed
50+
* Version 1.7 was a *MAJOR* Rebuild (preg_match and other *slow* routine removal(s)) included the following
51+
52+
## 0.0.9 - 2008-12-09
53+
### Fixed
54+
* removed an unused constant and renamed the constructor to use the PHP magic method __construct (thanks to Robin for locating the legacy constant and suggesting the use of the magic method).
55+
56+
## 0.0.8 - 2009-11-08
57+
### Fixed
58+
* A lot of changes to the script, thank you to everyone for the suggestions and emails. This release should add all of the requested features. Added BlackBerry, mobile detection, Opera Mini support, robot detection, Opera 10's UserAgent mess, detection for IceCat and Shiretoko!
59+
60+
## 0.0.7 - 2009-04-27
61+
### Fixed
62+
* John pointed out a terrible typo (see below) - removed the typo
63+
64+
## 0.0.6 - 2009-04-22
65+
### Added
66+
* added support for GoogleBot, the W3C Validator and Yahoo! Slurp
67+
68+
## 0.0.5 - 2009-03-14
69+
### Added
70+
* added support for the iPod; added iPod and iPhone as platforms; added Google.s Android
71+
72+
## 0.0.4 - 2009-02-24
73+
### Fixed
74+
* fixed typo in the usage! (thanks Adam!)
75+
76+
## 0.0.3 - 2009-02-19
77+
### Fixed
78+
* updated typical usage to show a correct example! (thanks David!)
79+

README.md

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -104,53 +104,3 @@ if( $browser->getBrowser() == Browser::BROWSER_FIREFOX && $browser->getVersion()
104104
}
105105
```
106106

107-
12/9/2008 Update
108-
* removed an unused constant and renamed the constructor to use the PHP magic method __construct (thanks to Robin for locating the legacy constant and suggesting the use of the magic method).
109-
110-
2/19/2009 Update
111-
* updated typical usage to show a correct example! (thanks David!)
112-
113-
2/24/2009 Update
114-
* fixed typo in the usage! (thanks Adam!)
115-
116-
3/14/2009 Update
117-
* added support for the iPod; added iPod and iPhone as platforms; added Google.s Android
118-
119-
4/22/2009 Update
120-
* added support for GoogleBot, the W3C Validator and Yahoo! Slurp
121-
122-
4/27/2009 Update
123-
* John pointed out a terrible typo (see below) . removed the typo
124-
125-
11/08/2009 Update
126-
* A lot of changes to the script, thank you to everyone for the suggestions and emails. This release should add all of the requested features. Added BlackBerry, mobile detection, Opera Mini support, robot detection, Opera 10.s UserAgent .mess., detection for IceCat and Shiretoko!
127-
128-
3/7/2010 Update
129-
* Version 1.7 was a *MAJOR* Rebuild (preg_match and other .slow. routine removal(s)) included the following changes:
130-
* Almost allof Gary.s original code has been replaced
131-
* Large PHPUNIT testing environment created to validate new releases and additions
132-
* Added FreeBSD Platform
133-
* Added OpenBSD Platform
134-
* Added NetBSD Platform
135-
* Added SunOS Platform
136-
* Added OpenSolaris Platform
137-
* Added support of the Iceweazel Browser
138-
* Added isChromeFrame() call to check if chromeframe is in use
139-
* Moved the Opera check in front of the Firefox check due to legacy Opera User Agents
140-
* Added the __toString() method (Thanks Deano)
141-
142-
4/27/2010: Update (Version 1.8)
143-
* Added iPad support
144-
145-
8/20/2010: Update (Version 1.9)
146-
* Added MSN Explorer Browser
147-
* Added Bing/MSN Robot
148-
* Added the Android Platform
149-
* Fixed issue with Android 1.6/2.2
150-
151-
6/19/2019: Update (Version 1.9.1)
152-
* Added Firefox iOS (gejobj)
153-
* Corrected 'Vivalidi' to 'Vivaldi' (adaxi)
154-
* Reset enhancement (yahasana)
155-
* Enforce using precise distribution until End Of Life for Travis CI (bburnichon)
156-
* Lazy load browser class on demand (bburnichon)

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
"branch-alias": {
1919
"dev-master": "1.9.x-dev"
2020
}
21+
},
22+
"require-dev": {
23+
"phpunit/phpunit": "^8"
2124
}
2225
}

0 commit comments

Comments
 (0)