use Symfony\Component\DependencyInjection\Config\ContainerParametersResourceChecker;
use Symfony\Component\DependencyInjection\ContainerInterface;
class ContainerParametersResourceCheckerTest extends TestCase
{ private ContainerParametersResource
$resource;
private ContainerParametersResourceChecker
$resourceChecker;
private MockObject&ContainerInterface
$container;
protected function setUp(): void
{ $this->resource =
new ContainerParametersResource(['locales' =>
['fr', 'en'
], 'default_locale' => 'fr'
]);
$this->container =
$this->
createMock(ContainerInterface::
class);
$this->resourceChecker =
new ContainerParametersResourceChecker($this->container
);
} public function testSupports() { $this->
assertTrue($this->resourceChecker->
supports($this->resource
));
} /**
* @dataProvider isFreshProvider
*/