getProperty('cache'); $realPath = __DIR__ . '/Stub/foo.twig'; $property->setValue($loader, ['Stub/foo.twig' => $realPath]); $return = $loader->findTemplate('Stub/foo.twig'); $this->assertEquals($realPath, $return); $return = $loader->findTemplate('Stub/foo'); $this->assertEquals($realPath, $return); } }