InterNations\Component\HttpMock\Server::clean PHP Method

clean() public method

public clean ( )
    public function clean()
    {
        if (!$this->isRunning()) {
            $this->start();
        }
        $this->getClient()->delete('/_all')->send();
    }

Usage Example

 public function setUp()
 {
     $this->matches = new MatcherFactory();
     $this->builder = new MockBuilder($this->matches, new ExtractorFactory());
     $this->server = new Server(HTTP_MOCK_PORT, HTTP_MOCK_HOST);
     $this->server->start();
     $this->server->clean();
 }
All Usage Examples Of InterNations\Component\HttpMock\Server::clean