Changeset View
Changeset View
Standalone View
Standalone View
src/applications/cache/spec/PhabricatorCacheSpec.php
| <?php | <?php | ||||
| abstract class PhabricatorCacheSpec extends Phobject { | abstract class PhabricatorCacheSpec extends Phobject { | ||||
| private $name; | private $name; | ||||
| private $isEnabled = false; | private $isEnabled = false; | ||||
| private $version; | private $version; | ||||
| private $clearCacheCallback = null; | |||||
| private $issues = array(); | private $issues = array(); | ||||
| private $usedMemory = 0; | private $usedMemory = 0; | ||||
| private $totalMemory = 0; | private $totalMemory = 0; | ||||
| private $entryCount = null; | private $entryCount = null; | ||||
| public function setName($name) { | public function setName($name) { | ||||
| $this->name = $name; | $this->name = $name; | ||||
| ▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | return $this | ||||
| ->newIssue('extension.apc.enabled') | ->newIssue('extension.apc.enabled') | ||||
| ->setShortName(pht('APC/APCu Disabled')) | ->setShortName(pht('APC/APCu Disabled')) | ||||
| ->setName(pht('APC/APCu Extensions Not Enabled')) | ->setName(pht('APC/APCu Extensions Not Enabled')) | ||||
| ->setSummary($summary) | ->setSummary($summary) | ||||
| ->setMessage($message) | ->setMessage($message) | ||||
| ->addPHPConfig('apc.enabled'); | ->addPHPConfig('apc.enabled'); | ||||
| } | } | ||||
| public function setClearCacheCallback($callback) { | |||||
| $this->clearCacheCallback = $callback; | |||||
| return $this; | |||||
| } | |||||
| public function getClearCacheCallback() { | |||||
| return $this->clearCacheCallback; | |||||
| } | |||||
| } | } | ||||