Skip to content

Commit

Permalink
Use "autoload-dev" for loading test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Oct 6, 2015
1 parent 3130ae3 commit 05fdc04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"psr-4": { "MongoDB\\": "src/" },
"files": [ "src/functions.php" ]
},
"autoload-dev": {
"psr-4": { "MongoDB\\Tests\\": "tests/" }
},
"extra": {
"branch-alias": {
"dev-master": "0.3.x-dev"
Expand Down
2 changes: 0 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@
} else {
throw new Exception('Can\'t find autoload.php. Did you install dependencies with Composer?');
}

$loader->addPsr4('MongoDB\\Tests\\', __DIR__);

0 comments on commit 05fdc04

Please sign in to comment.