private TemplateScopeDetector&MockObject
$templateScopeDetector;
private Environment&MockObject
$twig;
protected function setUp(): void
{ $this->hierarchyBuilder =
$this->
createMock(NamespaceHierarchyBuilder::
class);
$this->loader =
$this->
createMock(LoaderInterface::
class);
$this->templateScopeDetector =
$this->
createMock(TemplateScopeDetector::
class);
$this->twig =
$this->
createMock(Environment::
class);
$this->finder =
new TemplateFinder( $this->twig,
$this->loader,
'',
$this->hierarchyBuilder,
$this->templateScopeDetector
);
} /**
* @dataProvider templateNameProvider
*/