public function testClear() { $result = (object) array('a' => 123); $this->requestCache->put('TestCommand', 'cache-key-123', $result); $this->assertEquals($result, $this->requestCache->get('TestCommand', 'cache-key-123')); $this->requestCache->clear('TestCommand', 'cache-key-123'); $this->assertNull($this->requestCache->get('TestCommand', 'cache-key-123')); }