/** * Set up test dependencies * * @return void */ public function setUp() { $this->cache = new StringFrontend('TestCache', new TransientMemoryBackend(new ApplicationContext('Testing'))); $this->cache->initializeObject(); $this->hashService = new HashService(); $this->inject($this->hashService, 'cache', $this->cache); }