isOptional() public method

See also: Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface::isOptional()
public isOptional ( )
 public function testShouldBeRequired()
 {
     $cacheWarmer = new SerializerCacheWarmer(array(), new \HTMLPurifier());
     $this->assertFalse($cacheWarmer->isOptional());
 }
 public function testShouldBeRequired()
 {
     $cacheWarmer = new SerializerCacheWarmer([]);
     $this->assertFalse($cacheWarmer->isOptional());
 }