public function getPartialPathAndFilenameThrowsExceptionIfResolvedPathPointsToADirectory()
{
vfsStreamWrapper::register();
mkdir('vfs://MyTemplates/NotAFile');
$paths = ['vfs://NonExistentDir/UnknownFile.html', 'vfs://MyTemplates/NotAFile'];
/** @var TemplatePaths $templatePaths */
$templatePaths = $this->getAccessibleMock(TemplatePaths::class, ['expandGenericPathPattern'], [['partialPathAndFilenamePattern' => '@partialRoot/@subpackage/@partial.@format']], '', true);
$templatePaths->expects($this->once())->method('expandGenericPathPattern')->with('@partialRoot/@subpackage/@partial.@format', ['partial' => 'SomePartial', 'format' => 'html'], true, true)->will($this->returnValue($paths));
$templatePaths->getPartialSource('SomePartial');
}