minor #34433 Remove wrong @group legacy annotations (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

Remove wrong @group legacy annotations

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

These annotations are still found on branch 5.0.
Does this mean they are wrong? Why don't they make 5.0 fail if not?

Commits
-------

8d84ac34a5 Remove wrong @group legacy annotations
This commit is contained in:
Nicolas Grekas 2019-11-20 14:26:58 +01:00
commit 1b2651cefd
11 changed files with 2 additions and 30 deletions

View File

@ -60,8 +60,6 @@ class ConfigurationTest extends TestCase
}
/**
* @group legacy
*
* @dataProvider getInterceptRedirectsConfiguration
*/
public function testConfigTreeUsingInterceptRedirects(bool $interceptRedirects, array $expectedResult)

View File

@ -142,8 +142,6 @@ class WebProfilerExtensionTest extends TestCase
}
/**
* @group legacy
*
* @dataProvider getInterceptRedirectsToolbarConfig
*/
public function testToolbarConfigUsingInterceptRedirects(

View File

@ -28,9 +28,6 @@ class BundleTest extends TestCase
);
}
/**
* @group legacy
*/
public function testGetContainerExtensionWithInvalidClass()
{
$this->expectException('LogicException');

View File

@ -52,7 +52,7 @@ abstract class ObjectLoader extends Loader
$loaderObject = $this->getObject($parts[0]);
if (!\is_object($loaderObject)) {
throw new \LogicException(sprintf('%s:getObject() must return an object: %s returned', \get_class($this), \gettype($loaderObject)));
throw new \TypeError(sprintf('%s:getObject() must return an object: %s returned', \get_class($this), \gettype($loaderObject)));
}
if (!\is_callable([$loaderObject, $method])) {

View File

@ -62,12 +62,9 @@ class ObjectLoaderTest extends TestCase
];
}
/**
* @group legacy
*/
public function testExceptionOnNoObjectReturned()
{
$this->expectException('LogicException');
$this->expectException(\TypeError::class);
$loader = new TestObjectLoader();
$loader->loaderMap = ['my_service' => 'NOT_AN_OBJECT'];
$loader->load('my_service::method');

View File

@ -22,9 +22,6 @@ use Symfony\Component\Security\Core\User\UserProviderInterface;
class DaoAuthenticationProviderTest extends TestCase
{
/**
* @group legacy
*/
public function testRetrieveUserWhenProviderDoesNotReturnAnUserInterface()
{
$this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationServiceException');

View File

@ -62,9 +62,6 @@ class UserAuthenticationProviderTest extends TestCase
$provider->authenticate($this->getSupportedToken());
}
/**
* @group legacy
*/
public function testAuthenticateWhenProviderDoesNotReturnAnUserInterface()
{
$this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationServiceException');

View File

@ -72,9 +72,6 @@ class ExceptionListenerTest extends TestCase
];
}
/**
* @group legacy
*/
public function testExceptionWhenEntryPointReturnsBadValue()
{
$event = $this->createEvent(new AuthenticationException());

View File

@ -123,9 +123,6 @@ class LogoutListenerTest extends TestCase
$listener($event);
}
/**
* @group legacy
*/
public function testSuccessHandlerReturnsNonResponse()
{
$this->expectException('RuntimeException');

View File

@ -39,9 +39,6 @@ class AbstractRememberMeServicesTest extends TestCase
$this->assertNull($service->autoLogin(new Request()));
}
/**
* @group legacy
*/
public function testAutoLoginThrowsExceptionWhenImplementationDoesNotReturnUserInterface()
{
$this->expectException('RuntimeException');

View File

@ -20,9 +20,6 @@ class WorkflowTest extends TestCase
{
use WorkflowBuilderTrait;
/**
* @group legacy
*/
public function testGetMarkingWithInvalidStoreReturn()
{
$this->expectException('Symfony\Component\Workflow\Exception\LogicException');