Don't allow value 0 for getCacheDuration.

This commit is contained in:
Teromene 2016-08-30 11:40:38 +02:00
parent 65e599ba65
commit 392c67984d

View File

@ -87,6 +87,7 @@ class BridgeImplementationTest extends PHPUnit_Framework_TestCase {
$abstract = new BridgeAbstractTest();
$this->assertNotEquals($bridge->getCacheDuration(), $abstract->getCacheDuration(), $bridgeName . ' seems to implement \'getCacheDuration\' with default values, so you might safely remove it');
$this->assertNotEquals($bridge->getCacheDuration(), 0, $bridgeName . ' seems to implement \'getCacheDuration\' with value 0, which should not be allowed.');
}
}