diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-16 22:44:51 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-16 23:58:20 +0300 |
commit | c5fcfb070991c94631a89480f66c97a1d18721d0 (patch) | |
tree | 7f4ca7f046cf99b3acfff9223b86735968461bac /tests | |
parent | 2b70c708abc667c3e3c4fd9a97626012bf1ded25 (diff) |
Made the cache factory strict
* Return types
* Typehints
* made strict
* fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Memcache/FactoryTest.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib/Memcache/FactoryTest.php b/tests/lib/Memcache/FactoryTest.php index ce6c25cd87f..1944b1bd35d 100644 --- a/tests/lib/Memcache/FactoryTest.php +++ b/tests/lib/Memcache/FactoryTest.php @@ -20,9 +20,10 @@ */ namespace Test\Memcache; +use OC\Memcache\NullCache; use OCP\ILogger; -class Test_Factory_Available_Cache1 { +class Test_Factory_Available_Cache1 extends NullCache { public function __construct($prefix = '') { } @@ -31,7 +32,7 @@ class Test_Factory_Available_Cache1 { } } -class Test_Factory_Available_Cache2 { +class Test_Factory_Available_Cache2 extends NullCache { public function __construct($prefix = '') { } @@ -40,7 +41,7 @@ class Test_Factory_Available_Cache2 { } } -class Test_Factory_Unavailable_Cache1 { +class Test_Factory_Unavailable_Cache1 extends NullCache { public function __construct($prefix = '') { } @@ -49,7 +50,7 @@ class Test_Factory_Unavailable_Cache1 { } } -class Test_Factory_Unavailable_Cache2 { +class Test_Factory_Unavailable_Cache2 extends NullCache { public function __construct($prefix = '') { } |