public function pathToPartialIsResolvedCorrectly()
{
vfsStreamWrapper::register();
mkdir('vfs://MyPartials');
\file_put_contents('vfs://MyPartials/SomePartial', 'contentsOfSomePartial');
$paths = ['vfs://NonExistentDir/UnknowFile.html', 'vfs://MyPartials/SomePartial.html', 'vfs://MyPartials/SomePartial'];
$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));
$this->assertSame('contentsOfSomePartial', $templatePaths->getPartialSource('SomePartial'));
}