public function testReset() { $name = 'test.request'; $request = $this->getMockBuilder('Elastification\\Client\\Request\\RequestInterface')->getMock(); /** @noinspection PhpParamsInspection */ $this->requestManager->setRequest($name, $request); $this->assertTrue($this->requestManager->hasRequest($name)); $this->requestManager->reset($name); $this->assertFalse($this->requestManager->hasRequest($name)); }