public function testConstructorOnlyAcceptsAZendCacheStorageInterface() { if (PHP_MAJOR_VERSION >= 7) { $this->setExpectedException('\\TypeError'); } new ZendCacheAdapter(new \DateTime()); }