• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

phillipsdata / minphp-html / 9
6%
master: 6%

Build:
Build:
LAST BUILD BRANCH: 1.1.0
DEFAULT BRANCH: master
Ran 31 Oct 2017 10:55PM UTC
Jobs 6
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
9

push

travis-ci

Tyson Phillips
Improved performance of the UTF-8 check
Fixes #2
Replaced the old algorithm with a simple regex check for UTF-8. Also added mb_detect_encoding if the ext-mbstring extension is enabled.
For small strings, mb_detect_encoding performs about the same as the regex.
For large strings, it appears that the regex is noticably quicker (e.g. 1.5x to 4x faster for a 10,000 byte sequence).
Compared to the old algorithm, both mb_detect_encoding and the regex are about 30x to 40x quicker.

5 of 5 new or added lines in 1 file covered. (100.0%)

4 of 70 relevant lines covered (5.71%)

5.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/Html.php
Jobs
ID Job ID Ran Files Coverage
1 9.1 31 Oct 2017 10:56PM UTC 0
5.71
Travis Job 9.1
2 9.2 31 Oct 2017 10:55PM UTC 0
5.71
Travis Job 9.2
3 9.3 31 Oct 2017 10:55PM UTC 0
5.71
Travis Job 9.3
4 9.4 31 Oct 2017 10:55PM UTC 0
5.71
Travis Job 9.4
5 9.5 31 Oct 2017 10:55PM UTC 0
7.02
Travis Job 9.5
6 9.6 31 Oct 2017 10:56PM UTC 0
7.02
Travis Job 9.6
Source Files on build 9
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9
  • 2fe3feb2 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc