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

optimizely / php-sdk / 536 / 3
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 13 Jul 2018 12:04AM UTC
Files 57
Run time 4s
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

13 Jul 2018 12:02AM UTC coverage: 96.081% (-0.06%) from 96.141%
536.3

push

travis-ci

aliabbasrizvi
Add prefix to PSR-4 autoloader (#108)

PSR-4 autoloaders with no prefix can hurt performance, especially in
large projects with many dependencies. When resolving class names to
files, if Composer cannot use a prefix to limit the search paths, it has
to search every autoloader with a blank prefix.

This change adds a prefix to the autoloader, to avoid this problem.

Running `composer diagnose` previously reported this:

~/src/php-sdk % composer diagnose
Checking composer.json: WARNING
Defining autoload.psr-4 with an empty namespace prefix is a bad idea for performance

With this change, `composer diagnose` is happy.

I couldn't add tests for this, because it's not a code change. But, I
did run the test suite to verify that it everything still passes as
expected.

1275 of 1327 relevant lines covered (96.08%)

44.52 hits per line

Source Files on job 536.3
  • Tree
  • List 0
  • Changed 26
  • Source Changed 12
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 477
  • Travis Job 536.3
  • 3280346b on github
  • Prev Job for on master (#531.1)
  • Next Job for on master (#543.3)
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