Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Use composer for test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Jun 20, 2012
1 parent 1a8380f commit 9114efe
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
phpunit.xml
vendor
composer.lock
composer.phar

3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -9,4 +9,5 @@ before_script:
- tar -xzf mongo-1.2.7.tgz
- sh -c "cd mongo-1.2.7 && phpize && ./configure --enable-mongo && make && sudo make install"
- echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- git submodule update --init
- wget -nc http://getcomposer.org/composer.phar
- php composer.phar install
1 change: 0 additions & 1 deletion lib/vendor/doctrine-common
Submodule doctrine-common deleted from fc26d1
13 changes: 6 additions & 7 deletions tests/bootstrap.php
@@ -1,14 +1,13 @@
<?php

require_once __DIR__ . '/../lib/vendor/doctrine-common/lib/Doctrine/Common/ClassLoader.php';
$file = __DIR__.'/../vendor/autoload.php';
if (!file_exists($file)) {
throw new RuntimeException('Install dependencies to run test suite.');
}

require_once $file;

use Doctrine\Common\ClassLoader;

$classLoader = new ClassLoader('Doctrine\MongoDB\Tests', __DIR__ . '/../tests');
$classLoader->register();

$classLoader = new ClassLoader('Doctrine\MongoDB', __DIR__ . '/../lib');
$classLoader->register();

$classLoader = new ClassLoader('Doctrine\Common', __DIR__ . '/../lib/vendor/doctrine-common/lib');
$classLoader->register();

0 comments on commit 9114efe

Please sign in to comment.