public function testWarmupDoesNotCallWarmupOnOptionalWarmersWhenEnableOptionalWarmersIsNotEnabled() {
$warmer = $this
->getCacheWarmerMock();
$warmer
->expects($this
->once())
->method('isOptional')
->will($this
->returnValue(true));
$warmer
->expects($this
->never())
->method('warmUp');
$aggregate = new CacheWarmerAggregate(array(
$warmer,
));
$aggregate
->warmUp(self::$cacheDir);
}