From 392c67984d285675ef4c9bd6225eb7bafda29e87 Mon Sep 17 00:00:00 2001 From: Teromene Date: Tue, 30 Aug 2016 11:40:38 +0200 Subject: [PATCH] Don't allow value 0 for getCacheDuration. --- tests/BridgeImplementationTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/BridgeImplementationTest.php b/tests/BridgeImplementationTest.php index d129e638..a6a906e8 100644 --- a/tests/BridgeImplementationTest.php +++ b/tests/BridgeImplementationTest.php @@ -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.'); } }