Skip to content

Commit

Permalink
Remove internal test classes from autoloader (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 authored and soullivaneuh committed Jul 12, 2016
1 parent 4293193 commit 1a23729
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ UPGRADE 3.x
## Deprecated AbstractBlockServiceTest class

The `Tests\Block\AbstractBlockServiceTest` class is deprecated. Use `Test\AbstractBlockServiceTestCase` instead.

### Tests

All files under the ``Tests`` directory are now correctly handled as internal test classes.
You can't extend them anymore, because they are only loaded when running internal tests.
More information can be found in the [composer docs](https://getcomposer.org/doc/04-schema.md#autoload-dev).
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@
},
"autoload": {
"psr-4": { "Sonata\\BlockBundle\\": "" },
"exclude-from-classmap": [
"Tests/"
],
"files": ["Resources/stubs/symfony2.php"]
},
"autoload-dev": {
"psr-4": { "Sonata\\BlockBundle\\Tests\\": "Tests/" }
},
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
Expand Down

0 comments on commit 1a23729

Please sign in to comment.