private function createPictureFactory($pictureGenerator = null, $imageFactory = null, $framework = null, $bypassCache = null, $imagineOptions = null)
{
if (null === $pictureGenerator) {
$pictureGenerator = $this->getMockBuilder('Contao\\Image\\PictureGenerator')->disableOriginalConstructor()->getMock();
}
if (null === $imageFactory) {
$imageFactory = $this->getMockBuilder('Contao\\CoreBundle\\Image\\ImageFactory')->disableOriginalConstructor()->getMock();
}
if (null === $framework) {
$framework = $this->getMock('Contao\\CoreBundle\\Framework\\ContaoFrameworkInterface');
}
if (null === $bypassCache) {
$bypassCache = false;
}
if (null === $imagineOptions) {
$imagineOptions = [];
}
return new PictureFactory($pictureGenerator, $imageFactory, $framework, $bypassCache, $imagineOptions);
}