Make Symfony\Contracts\Service\Test\ServiceLocatorTest abstract

Also make getServiceLocator protected

As per https://github.com/symfony/symfony/issues/33946#issuecomment-541100439
This commit is contained in:
Reedy 2019-10-12 01:38:35 +01:00
parent 9c635615de
commit c2dd804a24

View File

@ -15,9 +15,9 @@ use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface; use Psr\Container\ContainerInterface;
use Symfony\Contracts\Service\ServiceLocatorTrait; use Symfony\Contracts\Service\ServiceLocatorTrait;
class ServiceLocatorTest extends TestCase abstract class ServiceLocatorTest extends TestCase
{ {
public function getServiceLocator(array $factories) protected function getServiceLocator(array $factories)
{ {
return new class($factories) implements ContainerInterface { return new class($factories) implements ContainerInterface {
use ServiceLocatorTrait; use ServiceLocatorTrait;