Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 16 deletions.
  1. +0 −4 .travis.yml
  2. +8 −12 tests/bootstrap.php
View
4 .travis.yml
@@ -4,8 +4,4 @@ php:
- 5.3
- 5.4
-before_script:
- - wget http://getcomposer.org/composer.phar
- - php composer.phar install
-
script: phpunit --coverage-text
View
20 tests/bootstrap.php
@@ -9,15 +9,11 @@
* file that was distributed with this source code.
*/
-if (!$loader = @include __DIR__.'/../vendor/.composer/autoload.php') {
- echo <<<EOM
-You must set up the project dependencies, run the following commands:
-curl -s http://getcomposer.org/installer | php
-php composer.phar install
-
-EOM;
-
- exit(1);
-}
-
-$loader->add('Spork\Test', __DIR__);
+spl_autoload_register(function($class)
+{
+ if (0 === strpos($class, 'Spork\\Test\\') && file_exists($file = __DIR__.'/'.str_replace('\\', '/', $class).'.php')) {
+ require_once $file;
+ } elseif (0 === strpos($class, 'Spork\\') && file_exists($file = __DIR__.'/../src/'.str_replace('\\', '/', $class).'.php')) {
+ require_once $file;
+ }
+});

No commit comments for this range

Something went wrong with that request. Please try again.