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

optimizely / php-sdk / 536
97%

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

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.

1461 of 1505 relevant lines covered (97.08%)

163.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 536.1 13 Jul 2018 12:03AM UTC 0
96.14
Travis Job 536.1
2 536.2 13 Jul 2018 12:04AM UTC 0
96.17
Travis Job 536.2
3 536.3 13 Jul 2018 12:03AM UTC 0
96.08
Travis Job 536.3
4 536.4 13 Jul 2018 12:03AM UTC 0
96.23
Travis Job 536.4
Source Files on build 536
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #536
  • 3280346b on github
  • Prev Build on master (#531)
  • Next Build on master (#543)
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