Skip to content

Commit

Permalink
Upgrade guide and deprecations for 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Jul 12, 2016
1 parent cf1b8b4 commit 0f1429c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Tests/Block/AbstractBlockServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
use Sonata\BlockBundle\Test\AbstractBlockServiceTestCase;

@trigger_error(
'The '.__NAMESPACE__.'\AbstractBlockServiceTest class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\AbstractBlockServiceTest class is deprecated since version 3.1 and will be removed in 4.0.'
.' Use Sonata\BlockBundle\Test\AbstractBlockServiceTestCase instead.',
E_USER_DEPRECATED
);

/**
* @deprecated Deprecated since version 3.x. Use Sonata\BlockBundle\Test\AbstractBlockServiceTestCase instead.
* @deprecated Deprecated since version 3.1. Use Sonata\BlockBundle\Test\AbstractBlockServiceTestCase instead.
*/
abstract class AbstractBlockServiceTest extends AbstractBlockServiceTestCase
{
Expand Down
4 changes: 2 additions & 2 deletions Tests/Block/Service/BaseTestBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
namespace Sonata\BlockBundle\Tests\Block\Service;

@trigger_error(
'The '.__NAMESPACE__.'\BaseTestBlockService class is deprecated since version 3.x and will be removed in 4.0.',
'The '.__NAMESPACE__.'\BaseTestBlockService class is deprecated since version 3.1 and will be removed in 4.0.',
E_USER_DEPRECATED
);

/**
* @deprecated Deprecated since version 3.x and will be removed in 4.0.
* @deprecated Deprecated since version 3.1 and will be removed in 4.0.
*/
class BaseTestBlockService extends \PHPUnit_Framework_TestCase
{
Expand Down
7 changes: 5 additions & 2 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
UPGRADE 3.x
===========

UPGRADE FROM 3.0 to 3.1
=======================

## 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.
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).

0 comments on commit 0f1429c

Please sign in to comment.