Skip to content

Commit

Permalink
Cleaned up composer setup and removed custom autoloader.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjsaylor committed Sep 20, 2013
1 parent cd0f195 commit 1ac5cee
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 39 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor/
bin/
composer.lock
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ env:
- MONGO_VERSION=1.3.1

before_script:
- pecl -q install mongo-${MONGO_VERSION} && echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- pecl -q install mongo-${MONGO_VERSION} && echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
- composer install --dev

script: phpunit --coverage-text

script: ./bin/phpunit --coverage-text

notifications:
email: false
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ __Current Version__: v1.1

## Testing

After cloning the repo, simply `cd` to the cloned directly and run:

```shell
$ phpunit
```
1. Clone repo.
1. Install dependencies `composer install -dev`
1. Run `./bin/phpunit`
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@
},
"require": {
"php": ">=5.3.0",
"phpunit/phpunit": ">=3.7.0",
"ext-mongo": "*"
},
"require-dev": {
"phpunit/phpunit": "3.7.*"
},
"bin": [
"composer/bin/mongounit"
],
"config": {
"bin-dir": "bin"
},
"autoload": {
"files": ["src/Zumba/PHPUnit/Extensions/Mongo/AutoLoader.php"]
"psr-0": {
"Zumba\\PHPUnit\\Extensions\\Mongo\\": "src/"
}
}
}
}
11 changes: 2 additions & 9 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="./src/Zumba/PHPUnit/Extensions/Mongo/AutoLoader.php"
bootstrap="vendor/autoload.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
Expand All @@ -19,15 +19,8 @@
</testsuite>
</testsuites>
<filter>
<blacklist>
<file>./src/Zumba/PHPUnit/Extensions/Mongo/AutoLoader.php</file>
<directory>./tests</directory>
</blacklist>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory>./src/Zumba/PHPUnit</directory>
<exclude>
<file>./src/Zumba/PHPUnit/Extensions/Mongo/AutoLoader.php</file>
</exclude>
</whitelist>
</filter>
</phpunit>
</phpunit>
20 changes: 0 additions & 20 deletions src/Zumba/PHPUnit/Extensions/Mongo/AutoLoader.php

This file was deleted.

0 comments on commit 1ac5cee

Please sign in to comment.