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
*/
public function testIsFresh(callable
$mockContainer,
$expected) {